From 9dbca2d64416f37a827f89c33c9d5a941617fd17 Mon Sep 17 00:00:00 2001 From: 9aoy <9aoyuao@gmail.com> Date: Thu, 26 Mar 2026 11:14:55 +0800 Subject: [PATCH 1/3] chore: fix MODULE_TYPELESS_PACKAGE_JSON warnings --- e2e/browser-mode/coverage.test.ts | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 ....config.ts => rstest.noInclude.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../fixtures/config/index.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../project-a/tsconfig.json | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../project-b/tsconfig.json | 2 +- .../{rstest.config.ts => rstest.config.mts} | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 e2e/build/index.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 e2e/cli/initBrowser.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 ...config.ts => rstest.envOptions.config.mts} | 0 ....config.ts => rstest.externals.config.mts} | 0 e2e/dom/index.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 ...e.config.ts => rstest.override.config.mts} | 0 e2e/exclude/index.test.ts | 2 +- e2e/externals/bundleDependencies.test.ts | 6 ++--- ...config.ts => rstest.bundleDeps.config.mts} | 0 ...ebug.config.ts => rstest.debug.config.mts} | 0 ...ash.config.ts => rstest.lodash.config.mts} | 0 ...nfig.ts => rstest.noBundleDeps.config.mts} | 0 e2e/externals/interop.test.ts | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 e2e/projects/coverage.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 ...st.404.config.ts => rstest.404.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 ...e.config.ts => rstest.coverage.config.mts} | 0 ....ts => rstest.coverage.include.config.mts} | 0 ...=> rstest.hideSkippedTestFiles.config.mts} | 0 ...ine.config.ts => rstest.inline.config.mts} | 0 ...fig.ts => rstest.projectConfig.config.mts} | 0 ...t.config.ts => rstest.slowTest.config.mts} | 0 e2e/projects/index.test.ts | 10 ++++---- e2e/projects/inline.test.ts | 2 +- ...e.config.ts => rstest.coverage.config.mts} | 0 e2e/reporter/md.test.ts | 23 +++++++++++-------- e2e/reporter/mergeReports.test.ts | 11 ++++++--- ...Md.config.ts => rstest.agentMd.config.mts} | 0 ...g.ts => rstest.agentMd.console.config.mts} | 0 ...nfig.ts => rstest.agentMd.pass.config.mts} | 0 ...stest.agentMd.snapshotMismatch.config.mts} | 0 ...fig.ts => rstest.agentMd.throw.config.mts} | 0 ...g.ts => rstest.agentMd.timeout.config.mts} | 0 ...ts => rstest.agentMd.truncated.config.mts} | 0 ...ts => rstest.agentMd.unhandled.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 ...st.esm.config.ts => rstest.esm.config.mts} | 0 ...nfig.ts => rstest.fileProtocol.config.mts} | 0 e2e/setup/index.test.ts | 4 ++-- .../{rstest.config.ts => rstest.config.mts} | 0 e2e/snapshot/file.test.ts | 2 +- ...ns.config.ts => rstest.options.config.mts} | 0 ...nfig.ts => rstest.snapshotPath.config.mts} | 0 e2e/snapshot/options.test.ts | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 package.json | 2 +- packages/adapter-rsbuild/rslib.config.mts | 2 +- packages/adapter-rslib/rslib.config.mts | 2 +- packages/adapter-rspack/rslib.config.mts | 2 +- packages/core/src/cli/init/browser/create.ts | 2 +- .../core/src/cli/init/browser/templates.ts | 4 ++-- packages/core/src/utils/constants.ts | 6 ++--- packages/vscode/rslib.config.mts | 2 +- .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 .../{rstest.config.ts => rstest.config.mts} | 0 packages/vscode/tests/suite/workspace.test.ts | 16 ++++++------- 121 files changed, 70 insertions(+), 60 deletions(-) rename e2e/browser-mode/fixtures/basic/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/browser-coverage/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/browser-coverage/{rstest.noInclude.config.ts => rstest.noInclude.config.mts} (100%) rename e2e/browser-mode/fixtures/browser-react/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/config/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/console/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/custom-output/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/entry-override/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/env/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/error/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/github-actions/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/invalid-bundle-dependencies/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/invalid-provider/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/isolation/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/list/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/locator-api/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/multi-project-config/project-a/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/multi-project-config/project-b/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/multi-project-config/{rstest.config.ts => rstest.config.mts} (50%) rename e2e/browser-mode/fixtures/no-tests/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/reporter-watch/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/reporter/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/setup-files/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/snapshot/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/viewport-preset/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/viewport/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/watch-stale/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/watch/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/browser-mode/fixtures/webkit/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/alias/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/cssModules/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/customOutput/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/decorators/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/define/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/plugin/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/runtimeRequire/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/build/fixtures/tools/rspack/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/chaiConfigs/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/dom/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/dom/fixtures/{rstest.envOptions.config.ts => rstest.envOptions.config.mts} (100%) rename e2e/dom/fixtures/{rstest.externals.config.ts => rstest.externals.config.mts} (100%) rename e2e/env/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/exclude/fixtures/{rstest.override.config.ts => rstest.override.config.mts} (100%) rename e2e/externals/fixtures/{rstest.bundleDeps.config.ts => rstest.bundleDeps.config.mts} (100%) rename e2e/externals/fixtures/{rstest.debug.config.ts => rstest.debug.config.mts} (100%) rename e2e/externals/fixtures/{rstest.lodash.config.ts => rstest.lodash.config.mts} (100%) rename e2e/externals/fixtures/{rstest.noBundleDeps.config.ts => rstest.noBundleDeps.config.mts} (100%) rename e2e/in-source/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/lifecycle/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/mock/fixtures/reRexports/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/mock/fixtures/unmock/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures-shard/packages/client-vue/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures-shard/packages/client/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures-shard/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures/extends/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures/packages/client-vue/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures/packages/client/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures/{rstest.404.config.ts => rstest.404.config.mts} (100%) rename e2e/projects/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/projects/fixtures/{rstest.coverage.config.ts => rstest.coverage.config.mts} (100%) rename e2e/projects/fixtures/{rstest.coverage.include.config.ts => rstest.coverage.include.config.mts} (100%) rename e2e/projects/fixtures/{rstest.hideSkippedTestFiles.config.ts => rstest.hideSkippedTestFiles.config.mts} (100%) rename e2e/projects/fixtures/{rstest.inline.config.ts => rstest.inline.config.mts} (100%) rename e2e/projects/fixtures/{rstest.projectConfig.config.ts => rstest.projectConfig.config.mts} (100%) rename e2e/projects/fixtures/{rstest.slowTest.config.ts => rstest.slowTest.config.mts} (100%) rename e2e/reporter/fixtures-merge/{rstest.coverage.config.ts => rstest.coverage.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.config.ts => rstest.agentMd.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.console.config.ts => rstest.agentMd.console.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.pass.config.ts => rstest.agentMd.pass.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.snapshotMismatch.config.ts => rstest.agentMd.snapshotMismatch.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.throw.config.ts => rstest.agentMd.throw.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.timeout.config.ts => rstest.agentMd.timeout.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.truncated.config.ts => rstest.agentMd.truncated.config.mts} (100%) rename e2e/reporter/{rstest.agentMd.unhandled.config.ts => rstest.agentMd.unhandled.config.mts} (100%) rename e2e/reporter/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/rootDir/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/setup/fixtures/basic/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/setup/fixtures/error/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/setup/fixtures/no-isolate/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/setup/fixtures/package-name/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/setup/fixtures/package-name/{rstest.esm.config.ts => rstest.esm.config.mts} (100%) rename e2e/setup/fixtures/package-name/{rstest.fileProtocol.config.ts => rstest.fileProtocol.config.mts} (100%) rename e2e/singleton/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/snapshot/fixtures/{rstest.options.config.ts => rstest.options.config.mts} (100%) rename e2e/snapshot/fixtures/{rstest.snapshotPath.config.ts => rstest.snapshotPath.config.mts} (100%) rename e2e/ssr/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/vue/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/watch/fixtures-setup/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/watch/fixtures-shortcuts/{rstest.config.ts => rstest.config.mts} (100%) rename e2e/watch/fixtures/{rstest.config.ts => rstest.config.mts} (100%) rename packages/vscode/sample/{rstest.config.ts => rstest.config.mts} (100%) rename packages/vscode/tests/fixtures/workspace-1/{rstest.config.ts => rstest.config.mts} (100%) rename packages/vscode/tests/fixtures/workspace-2/folder/project-2/{rstest.config.ts => rstest.config.mts} (100%) rename packages/vscode/tests/fixtures/workspace-2/project-1/{rstest.config.ts => rstest.config.mts} (100%) diff --git a/e2e/browser-mode/coverage.test.ts b/e2e/browser-mode/coverage.test.ts index ba57834eb..faf83c9ec 100644 --- a/e2e/browser-mode/coverage.test.ts +++ b/e2e/browser-mode/coverage.test.ts @@ -19,7 +19,7 @@ describe('browser mode - coverage', () => { it('should collect coverage data successfully without include option', async () => { const { expectExecSuccess, cli } = await runBrowserCli('browser-coverage', { - args: ['-c', 'rstest.noInclude.config.ts'], + args: ['-c', 'rstest.noInclude.config.mts'], }); await expectExecSuccess(); diff --git a/e2e/browser-mode/fixtures/basic/rstest.config.ts b/e2e/browser-mode/fixtures/basic/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/basic/rstest.config.ts rename to e2e/browser-mode/fixtures/basic/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/browser-coverage/rstest.config.ts b/e2e/browser-mode/fixtures/browser-coverage/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/browser-coverage/rstest.config.ts rename to e2e/browser-mode/fixtures/browser-coverage/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/browser-coverage/rstest.noInclude.config.ts b/e2e/browser-mode/fixtures/browser-coverage/rstest.noInclude.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/browser-coverage/rstest.noInclude.config.ts rename to e2e/browser-mode/fixtures/browser-coverage/rstest.noInclude.config.mts diff --git a/e2e/browser-mode/fixtures/browser-react/rstest.config.ts b/e2e/browser-mode/fixtures/browser-react/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/browser-react/rstest.config.ts rename to e2e/browser-mode/fixtures/browser-react/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/config/index.test.ts b/e2e/browser-mode/fixtures/config/index.test.ts index 6b8062211..460ae2367 100644 --- a/e2e/browser-mode/fixtures/config/index.test.ts +++ b/e2e/browser-mode/fixtures/config/index.test.ts @@ -1,4 +1,4 @@ -// @ts-expect-error - @test-alias is defined via resolve.alias in rstest.config.ts +// @ts-expect-error - @test-alias is defined via resolve.alias in rstest.config.mts import { ALIASED_VALUE } from '@test-alias'; // This test uses globals: true config @@ -19,7 +19,7 @@ describe('globals config', () => { describe('rsbuild config options', () => { it('should support source.define', () => { - // @ts-expect-error - __TEST_DEFINE__ is defined via source.define in rstest.config.ts + // @ts-expect-error - __TEST_DEFINE__ is defined via source.define in rstest.config.mts expect(__TEST_DEFINE__).toBe('define-value'); }); diff --git a/e2e/browser-mode/fixtures/config/rstest.config.ts b/e2e/browser-mode/fixtures/config/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/config/rstest.config.ts rename to e2e/browser-mode/fixtures/config/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/console/rstest.config.ts b/e2e/browser-mode/fixtures/console/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/console/rstest.config.ts rename to e2e/browser-mode/fixtures/console/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/custom-output/rstest.config.ts b/e2e/browser-mode/fixtures/custom-output/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/custom-output/rstest.config.ts rename to e2e/browser-mode/fixtures/custom-output/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/entry-override/rstest.config.ts b/e2e/browser-mode/fixtures/entry-override/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/entry-override/rstest.config.ts rename to e2e/browser-mode/fixtures/entry-override/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/env/rstest.config.ts b/e2e/browser-mode/fixtures/env/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/env/rstest.config.ts rename to e2e/browser-mode/fixtures/env/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/error/rstest.config.ts b/e2e/browser-mode/fixtures/error/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/error/rstest.config.ts rename to e2e/browser-mode/fixtures/error/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/github-actions/rstest.config.ts b/e2e/browser-mode/fixtures/github-actions/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/github-actions/rstest.config.ts rename to e2e/browser-mode/fixtures/github-actions/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/invalid-bundle-dependencies/rstest.config.ts b/e2e/browser-mode/fixtures/invalid-bundle-dependencies/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/invalid-bundle-dependencies/rstest.config.ts rename to e2e/browser-mode/fixtures/invalid-bundle-dependencies/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/invalid-provider/rstest.config.ts b/e2e/browser-mode/fixtures/invalid-provider/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/invalid-provider/rstest.config.ts rename to e2e/browser-mode/fixtures/invalid-provider/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/isolation/rstest.config.ts b/e2e/browser-mode/fixtures/isolation/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/isolation/rstest.config.ts rename to e2e/browser-mode/fixtures/isolation/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/list/rstest.config.ts b/e2e/browser-mode/fixtures/list/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/list/rstest.config.ts rename to e2e/browser-mode/fixtures/list/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/locator-api/rstest.config.ts b/e2e/browser-mode/fixtures/locator-api/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/locator-api/rstest.config.ts rename to e2e/browser-mode/fixtures/locator-api/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/multi-project-config/project-a/rstest.config.ts b/e2e/browser-mode/fixtures/multi-project-config/project-a/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/multi-project-config/project-a/rstest.config.ts rename to e2e/browser-mode/fixtures/multi-project-config/project-a/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/multi-project-config/project-a/tsconfig.json b/e2e/browser-mode/fixtures/multi-project-config/project-a/tsconfig.json index 671ad7782..55123ac4e 100644 --- a/e2e/browser-mode/fixtures/multi-project-config/project-a/tsconfig.json +++ b/e2e/browser-mode/fixtures/multi-project-config/project-a/tsconfig.json @@ -11,5 +11,5 @@ "jsx": "react-jsx", "types": ["@rstest/core"] }, - "include": ["tests", "rstest.config.ts"] + "include": ["tests", "rstest.config.mts"] } diff --git a/e2e/browser-mode/fixtures/multi-project-config/project-b/rstest.config.ts b/e2e/browser-mode/fixtures/multi-project-config/project-b/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/multi-project-config/project-b/rstest.config.ts rename to e2e/browser-mode/fixtures/multi-project-config/project-b/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/multi-project-config/project-b/tsconfig.json b/e2e/browser-mode/fixtures/multi-project-config/project-b/tsconfig.json index 1fe947995..f217d983b 100644 --- a/e2e/browser-mode/fixtures/multi-project-config/project-b/tsconfig.json +++ b/e2e/browser-mode/fixtures/multi-project-config/project-b/tsconfig.json @@ -10,5 +10,5 @@ "moduleResolution": "bundler", "types": ["@rstest/core"] }, - "include": ["tests", "rstest.config.ts"] + "include": ["tests", "rstest.config.mts"] } diff --git a/e2e/browser-mode/fixtures/multi-project-config/rstest.config.ts b/e2e/browser-mode/fixtures/multi-project-config/rstest.config.mts similarity index 50% rename from e2e/browser-mode/fixtures/multi-project-config/rstest.config.ts rename to e2e/browser-mode/fixtures/multi-project-config/rstest.config.mts index 72cef633d..491b2b598 100644 --- a/e2e/browser-mode/fixtures/multi-project-config/rstest.config.ts +++ b/e2e/browser-mode/fixtures/multi-project-config/rstest.config.mts @@ -1,5 +1,5 @@ import { defineConfig } from '@rstest/core'; export default defineConfig({ - projects: ['./project-b/rstest.config.ts', './project-a/rstest.config.ts'], + projects: ['./project-b/rstest.config.mts', './project-a/rstest.config.mts'], }); diff --git a/e2e/browser-mode/fixtures/no-tests/rstest.config.ts b/e2e/browser-mode/fixtures/no-tests/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/no-tests/rstest.config.ts rename to e2e/browser-mode/fixtures/no-tests/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/reporter-watch/rstest.config.ts b/e2e/browser-mode/fixtures/reporter-watch/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/reporter-watch/rstest.config.ts rename to e2e/browser-mode/fixtures/reporter-watch/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/reporter/rstest.config.ts b/e2e/browser-mode/fixtures/reporter/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/reporter/rstest.config.ts rename to e2e/browser-mode/fixtures/reporter/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/setup-files/rstest.config.ts b/e2e/browser-mode/fixtures/setup-files/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/setup-files/rstest.config.ts rename to e2e/browser-mode/fixtures/setup-files/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/snapshot/rstest.config.ts b/e2e/browser-mode/fixtures/snapshot/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/snapshot/rstest.config.ts rename to e2e/browser-mode/fixtures/snapshot/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/viewport-preset/rstest.config.ts b/e2e/browser-mode/fixtures/viewport-preset/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/viewport-preset/rstest.config.ts rename to e2e/browser-mode/fixtures/viewport-preset/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/viewport/rstest.config.ts b/e2e/browser-mode/fixtures/viewport/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/viewport/rstest.config.ts rename to e2e/browser-mode/fixtures/viewport/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/watch-stale/rstest.config.ts b/e2e/browser-mode/fixtures/watch-stale/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/watch-stale/rstest.config.ts rename to e2e/browser-mode/fixtures/watch-stale/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/watch/rstest.config.ts b/e2e/browser-mode/fixtures/watch/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/watch/rstest.config.ts rename to e2e/browser-mode/fixtures/watch/rstest.config.mts diff --git a/e2e/browser-mode/fixtures/webkit/rstest.config.ts b/e2e/browser-mode/fixtures/webkit/rstest.config.mts similarity index 100% rename from e2e/browser-mode/fixtures/webkit/rstest.config.ts rename to e2e/browser-mode/fixtures/webkit/rstest.config.mts diff --git a/e2e/build/fixtures/alias/rstest.config.ts b/e2e/build/fixtures/alias/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/alias/rstest.config.ts rename to e2e/build/fixtures/alias/rstest.config.mts diff --git a/e2e/build/fixtures/cssModules/rstest.config.ts b/e2e/build/fixtures/cssModules/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/cssModules/rstest.config.ts rename to e2e/build/fixtures/cssModules/rstest.config.mts diff --git a/e2e/build/fixtures/customOutput/rstest.config.ts b/e2e/build/fixtures/customOutput/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/customOutput/rstest.config.ts rename to e2e/build/fixtures/customOutput/rstest.config.mts diff --git a/e2e/build/fixtures/decorators/rstest.config.ts b/e2e/build/fixtures/decorators/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/decorators/rstest.config.ts rename to e2e/build/fixtures/decorators/rstest.config.mts diff --git a/e2e/build/fixtures/define/rstest.config.ts b/e2e/build/fixtures/define/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/define/rstest.config.ts rename to e2e/build/fixtures/define/rstest.config.mts diff --git a/e2e/build/fixtures/plugin/rstest.config.ts b/e2e/build/fixtures/plugin/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/plugin/rstest.config.ts rename to e2e/build/fixtures/plugin/rstest.config.mts diff --git a/e2e/build/fixtures/runtimeRequire/rstest.config.ts b/e2e/build/fixtures/runtimeRequire/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/runtimeRequire/rstest.config.ts rename to e2e/build/fixtures/runtimeRequire/rstest.config.mts diff --git a/e2e/build/fixtures/tools/rspack/rstest.config.ts b/e2e/build/fixtures/tools/rspack/rstest.config.mts similarity index 100% rename from e2e/build/fixtures/tools/rspack/rstest.config.ts rename to e2e/build/fixtures/tools/rspack/rstest.config.mts diff --git a/e2e/build/index.test.ts b/e2e/build/index.test.ts index abba7c604..7258c8646 100644 --- a/e2e/build/index.test.ts +++ b/e2e/build/index.test.ts @@ -23,7 +23,7 @@ describe('test build config', () => { 'run', `fixtures/${name}`, '-c', - `fixtures/${name}/rstest.config.ts`, + `fixtures/${name}/rstest.config.mts`, ], onTestFinished, options: { @@ -54,7 +54,7 @@ describe('test build config', () => { 'run', 'fixtures/customOutput', '-c', - 'fixtures/customOutput/rstest.config.ts', + 'fixtures/customOutput/rstest.config.mts', ], onTestFinished, options: { diff --git a/e2e/chaiConfigs/fixtures/rstest.config.ts b/e2e/chaiConfigs/fixtures/rstest.config.mts similarity index 100% rename from e2e/chaiConfigs/fixtures/rstest.config.ts rename to e2e/chaiConfigs/fixtures/rstest.config.mts diff --git a/e2e/cli/initBrowser.test.ts b/e2e/cli/initBrowser.test.ts index 2210a47c1..8a8260f7f 100644 --- a/e2e/cli/initBrowser.test.ts +++ b/e2e/cli/initBrowser.test.ts @@ -41,7 +41,7 @@ describe('cli init browser', () => { await expectExecSuccess(); expect( - fs.existsSync(path.join(projectDir, 'rstest.browser.config.ts')), + fs.existsSync(path.join(projectDir, 'rstest.browser.config.mts')), ).toBe(true); expect( @@ -51,7 +51,7 @@ describe('cli init browser', () => { const pkg = readJson(path.join(projectDir, 'package.json')); expect(pkg.scripts?.['test:browser']).toBe( - 'rstest --config=rstest.browser.config.ts', + 'rstest --config=rstest.browser.config.mts', ); }); }); diff --git a/e2e/dom/fixtures/rstest.config.ts b/e2e/dom/fixtures/rstest.config.mts similarity index 100% rename from e2e/dom/fixtures/rstest.config.ts rename to e2e/dom/fixtures/rstest.config.mts diff --git a/e2e/dom/fixtures/rstest.envOptions.config.ts b/e2e/dom/fixtures/rstest.envOptions.config.mts similarity index 100% rename from e2e/dom/fixtures/rstest.envOptions.config.ts rename to e2e/dom/fixtures/rstest.envOptions.config.mts diff --git a/e2e/dom/fixtures/rstest.externals.config.ts b/e2e/dom/fixtures/rstest.externals.config.mts similarity index 100% rename from e2e/dom/fixtures/rstest.externals.config.ts rename to e2e/dom/fixtures/rstest.externals.config.mts diff --git a/e2e/dom/index.test.ts b/e2e/dom/index.test.ts index f1ceece34..e5682bb1c 100644 --- a/e2e/dom/index.test.ts +++ b/e2e/dom/index.test.ts @@ -4,7 +4,7 @@ import { runCli } from './utils'; const appFilters = 'test/App'; const jestDomFilters = 'test/jestDom'; -const externalConfigArgs = ['--config', 'rstest.externals.config.ts']; +const externalConfigArgs = ['--config', 'rstest.externals.config.mts']; describe('jsdom', () => { it('should run test correctly', async () => { @@ -26,7 +26,7 @@ describe('jsdom', () => { it('should run test correctly with custom environment options', async () => { const { expectExecSuccess } = await runCli('test/envOptions', undefined, { - args: ['--config', 'rstest.envOptions.config.ts'], + args: ['--config', 'rstest.envOptions.config.mts'], }); await expectExecSuccess(); }); diff --git a/e2e/env/fixtures/rstest.config.ts b/e2e/env/fixtures/rstest.config.mts similarity index 100% rename from e2e/env/fixtures/rstest.config.ts rename to e2e/env/fixtures/rstest.config.mts diff --git a/e2e/exclude/fixtures/rstest.override.config.ts b/e2e/exclude/fixtures/rstest.override.config.mts similarity index 100% rename from e2e/exclude/fixtures/rstest.override.config.ts rename to e2e/exclude/fixtures/rstest.override.config.mts diff --git a/e2e/exclude/index.test.ts b/e2e/exclude/index.test.ts index 256b97715..eb2cbe2b1 100644 --- a/e2e/exclude/index.test.ts +++ b/e2e/exclude/index.test.ts @@ -59,7 +59,7 @@ describe('test exclude option', () => { it('should not exclude dist when override is true', async () => { const { expectLog, expectExecFailed } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.override.config.ts'], + args: ['run', '-c', 'rstest.override.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), diff --git a/e2e/externals/bundleDependencies.test.ts b/e2e/externals/bundleDependencies.test.ts index fba51a5c8..731d319e3 100644 --- a/e2e/externals/bundleDependencies.test.ts +++ b/e2e/externals/bundleDependencies.test.ts @@ -27,7 +27,7 @@ describe('test bundleDependencies', () => { './fixtures/index.test.ts', '--testEnvironment=jsdom', '-c', - './fixtures/rstest.noBundleDeps.config.ts', + './fixtures/rstest.noBundleDeps.config.mts', ], options: { nodeOptions: { @@ -52,7 +52,7 @@ describe('test bundleDependencies', () => { './fixtures/index.test.ts', '--testEnvironment=jsdom', '-c', - './fixtures/rstest.debug.config.ts', + './fixtures/rstest.debug.config.mts', ], options: { nodeOptions: { @@ -76,7 +76,7 @@ describe('test bundleDependencies', () => { 'run', './fixtures/index.test.ts', '-c', - './fixtures/rstest.bundleDeps.config.ts', + './fixtures/rstest.bundleDeps.config.mts', ], options: { nodeOptions: { diff --git a/e2e/externals/fixtures/rstest.bundleDeps.config.ts b/e2e/externals/fixtures/rstest.bundleDeps.config.mts similarity index 100% rename from e2e/externals/fixtures/rstest.bundleDeps.config.ts rename to e2e/externals/fixtures/rstest.bundleDeps.config.mts diff --git a/e2e/externals/fixtures/rstest.debug.config.ts b/e2e/externals/fixtures/rstest.debug.config.mts similarity index 100% rename from e2e/externals/fixtures/rstest.debug.config.ts rename to e2e/externals/fixtures/rstest.debug.config.mts diff --git a/e2e/externals/fixtures/rstest.lodash.config.ts b/e2e/externals/fixtures/rstest.lodash.config.mts similarity index 100% rename from e2e/externals/fixtures/rstest.lodash.config.ts rename to e2e/externals/fixtures/rstest.lodash.config.mts diff --git a/e2e/externals/fixtures/rstest.noBundleDeps.config.ts b/e2e/externals/fixtures/rstest.noBundleDeps.config.mts similarity index 100% rename from e2e/externals/fixtures/rstest.noBundleDeps.config.ts rename to e2e/externals/fixtures/rstest.noBundleDeps.config.mts diff --git a/e2e/externals/interop.test.ts b/e2e/externals/interop.test.ts index 721292f11..3a5a64a14 100644 --- a/e2e/externals/interop.test.ts +++ b/e2e/externals/interop.test.ts @@ -57,7 +57,7 @@ describe('test interop', () => { './fixtures/interopLodash', '--testEnvironment=node', '-c', - './fixtures/rstest.lodash.config.ts', + './fixtures/rstest.lodash.config.mts', ] : ['run', './fixtures/interopLodash', '--testEnvironment=node'], options: { diff --git a/e2e/in-source/fixtures/rstest.config.ts b/e2e/in-source/fixtures/rstest.config.mts similarity index 100% rename from e2e/in-source/fixtures/rstest.config.ts rename to e2e/in-source/fixtures/rstest.config.mts diff --git a/e2e/lifecycle/rstest.config.ts b/e2e/lifecycle/rstest.config.mts similarity index 100% rename from e2e/lifecycle/rstest.config.ts rename to e2e/lifecycle/rstest.config.mts diff --git a/e2e/mock/fixtures/reRexports/rstest.config.ts b/e2e/mock/fixtures/reRexports/rstest.config.mts similarity index 100% rename from e2e/mock/fixtures/reRexports/rstest.config.ts rename to e2e/mock/fixtures/reRexports/rstest.config.mts diff --git a/e2e/mock/fixtures/unmock/rstest.config.ts b/e2e/mock/fixtures/unmock/rstest.config.mts similarity index 100% rename from e2e/mock/fixtures/unmock/rstest.config.ts rename to e2e/mock/fixtures/unmock/rstest.config.mts diff --git a/e2e/projects/coverage.test.ts b/e2e/projects/coverage.test.ts index ae2d3c4c5..4207ae7d8 100644 --- a/e2e/projects/coverage.test.ts +++ b/e2e/projects/coverage.test.ts @@ -11,7 +11,7 @@ describe('test projects coverage', () => { it('should run projects correctly with coverage', async () => { const { cli, expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '--globals', '-c', 'rstest.coverage.config.ts'], + args: ['run', '--globals', '-c', 'rstest.coverage.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), @@ -50,7 +50,7 @@ describe('test projects coverage', () => { it('should run projects correctly with coverage.include', async () => { const { cli, expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '--globals', '-c', 'rstest.coverage.include.config.ts'], + args: ['run', '--globals', '-c', 'rstest.coverage.include.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), diff --git a/e2e/projects/fixtures-shard/packages/client-vue/rstest.config.ts b/e2e/projects/fixtures-shard/packages/client-vue/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures-shard/packages/client-vue/rstest.config.ts rename to e2e/projects/fixtures-shard/packages/client-vue/rstest.config.mts diff --git a/e2e/projects/fixtures-shard/packages/client/rstest.config.ts b/e2e/projects/fixtures-shard/packages/client/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures-shard/packages/client/rstest.config.ts rename to e2e/projects/fixtures-shard/packages/client/rstest.config.mts diff --git a/e2e/projects/fixtures-shard/rstest.config.ts b/e2e/projects/fixtures-shard/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures-shard/rstest.config.ts rename to e2e/projects/fixtures-shard/rstest.config.mts diff --git a/e2e/projects/fixtures/extends/rstest.config.ts b/e2e/projects/fixtures/extends/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures/extends/rstest.config.ts rename to e2e/projects/fixtures/extends/rstest.config.mts diff --git a/e2e/projects/fixtures/packages/client-vue/rstest.config.ts b/e2e/projects/fixtures/packages/client-vue/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures/packages/client-vue/rstest.config.ts rename to e2e/projects/fixtures/packages/client-vue/rstest.config.mts diff --git a/e2e/projects/fixtures/packages/client/rstest.config.ts b/e2e/projects/fixtures/packages/client/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures/packages/client/rstest.config.ts rename to e2e/projects/fixtures/packages/client/rstest.config.mts diff --git a/e2e/projects/fixtures/rstest.404.config.ts b/e2e/projects/fixtures/rstest.404.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.404.config.ts rename to e2e/projects/fixtures/rstest.404.config.mts diff --git a/e2e/projects/fixtures/rstest.config.ts b/e2e/projects/fixtures/rstest.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.config.ts rename to e2e/projects/fixtures/rstest.config.mts diff --git a/e2e/projects/fixtures/rstest.coverage.config.ts b/e2e/projects/fixtures/rstest.coverage.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.coverage.config.ts rename to e2e/projects/fixtures/rstest.coverage.config.mts diff --git a/e2e/projects/fixtures/rstest.coverage.include.config.ts b/e2e/projects/fixtures/rstest.coverage.include.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.coverage.include.config.ts rename to e2e/projects/fixtures/rstest.coverage.include.config.mts diff --git a/e2e/projects/fixtures/rstest.hideSkippedTestFiles.config.ts b/e2e/projects/fixtures/rstest.hideSkippedTestFiles.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.hideSkippedTestFiles.config.ts rename to e2e/projects/fixtures/rstest.hideSkippedTestFiles.config.mts diff --git a/e2e/projects/fixtures/rstest.inline.config.ts b/e2e/projects/fixtures/rstest.inline.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.inline.config.ts rename to e2e/projects/fixtures/rstest.inline.config.mts diff --git a/e2e/projects/fixtures/rstest.projectConfig.config.ts b/e2e/projects/fixtures/rstest.projectConfig.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.projectConfig.config.ts rename to e2e/projects/fixtures/rstest.projectConfig.config.mts diff --git a/e2e/projects/fixtures/rstest.slowTest.config.ts b/e2e/projects/fixtures/rstest.slowTest.config.mts similarity index 100% rename from e2e/projects/fixtures/rstest.slowTest.config.ts rename to e2e/projects/fixtures/rstest.slowTest.config.mts diff --git a/e2e/projects/index.test.ts b/e2e/projects/index.test.ts index 415cacd1b..5279d54c0 100644 --- a/e2e/projects/index.test.ts +++ b/e2e/projects/index.test.ts @@ -51,7 +51,7 @@ describe('test projects', () => { it('should run project correctly with specified config root', async () => { const { cli, expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '--globals', '-c', 'packages/client/rstest.config.ts'], + args: ['run', '--globals', '-c', 'packages/client/rstest.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), @@ -78,7 +78,7 @@ describe('test projects', () => { it('should run projects fail when project not found', async () => { const { expectExecFailed, expectStderrLog } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.404.config.ts'], + args: ['run', '-c', 'rstest.404.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), @@ -151,7 +151,7 @@ describe('test projects', () => { args: [ 'run', '-c', - 'rstest.projectConfig.config.ts', + 'rstest.projectConfig.config.mts', '--reporter', 'verbose', ], @@ -184,7 +184,7 @@ describe('test projects', () => { args: [ 'run', '-c', - 'rstest.slowTest.config.ts', + 'rstest.slowTest.config.mts', '--reporter', 'verbose', ], @@ -210,7 +210,7 @@ describe('test projects', () => { it('should respect hideSkippedTestFiles per project', async () => { const { cli, expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.hideSkippedTestFiles.config.ts'], + args: ['run', '-c', 'rstest.hideSkippedTestFiles.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), diff --git a/e2e/projects/inline.test.ts b/e2e/projects/inline.test.ts index 80a12cb9f..7d1e6d054 100644 --- a/e2e/projects/inline.test.ts +++ b/e2e/projects/inline.test.ts @@ -10,7 +10,7 @@ describe('test projects inline projectConfig', () => { it('should run projects correctly with inline projectConfig', async () => { const { cli, expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.inline.config.ts'], + args: ['run', '-c', 'rstest.inline.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), diff --git a/e2e/reporter/fixtures-merge/rstest.coverage.config.ts b/e2e/reporter/fixtures-merge/rstest.coverage.config.mts similarity index 100% rename from e2e/reporter/fixtures-merge/rstest.coverage.config.ts rename to e2e/reporter/fixtures-merge/rstest.coverage.config.mts diff --git a/e2e/reporter/md.test.ts b/e2e/reporter/md.test.ts index 012640b5b..db2f59309 100644 --- a/e2e/reporter/md.test.ts +++ b/e2e/reporter/md.test.ts @@ -25,7 +25,7 @@ describe('md', () => { }) => { const { cli } = await runRstestCli({ command: 'rstest', - args: ['run', 'agent-md/index', '-c', './rstest.agentMd.config.ts'], + args: ['run', 'agent-md/index', '-c', './rstest.agentMd.config.mts'], onTestFinished, unsetEnv: UNSET_ENV, options: { @@ -124,7 +124,7 @@ describe('md', () => { 'run', 'agent-md/snapshotMismatch', '-c', - './rstest.agentMd.snapshotMismatch.config.ts', + './rstest.agentMd.snapshotMismatch.config.mts', ], onTestFinished, unsetEnv: UNSET_ENV, @@ -226,7 +226,7 @@ describe('md', () => { 'run', 'agent-md/console', '-c', - './rstest.agentMd.console.config.ts', + './rstest.agentMd.console.config.mts', ], onTestFinished, unsetEnv: UNSET_ENV, @@ -341,7 +341,12 @@ describe('md', () => { it('formats thrown errors', async ({ onTestFinished }) => { const { cli } = await runRstestCli({ command: 'rstest', - args: ['run', 'agent-md/throw', '-c', './rstest.agentMd.throw.config.ts'], + args: [ + 'run', + 'agent-md/throw', + '-c', + './rstest.agentMd.throw.config.mts', + ], onTestFinished, unsetEnv: UNSET_ENV, options: { @@ -430,7 +435,7 @@ describe('md', () => { 'run', 'agent-md/timeout', '-c', - './rstest.agentMd.timeout.config.ts', + './rstest.agentMd.timeout.config.mts', ], onTestFinished, unsetEnv: UNSET_ENV, @@ -522,7 +527,7 @@ describe('md', () => { 'run', 'agent-md/truncated', '-c', - './rstest.agentMd.truncated.config.ts', + './rstest.agentMd.truncated.config.mts', ], onTestFinished, unsetEnv: UNSET_ENV, @@ -700,7 +705,7 @@ describe('md', () => { it('omits lists on non-focused passing runs', async ({ onTestFinished }) => { const { cli } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', './rstest.agentMd.pass.config.ts'], + args: ['run', '-c', './rstest.agentMd.pass.config.mts'], onTestFinished, unsetEnv: UNSET_ENV, options: { @@ -769,7 +774,7 @@ describe('md', () => { }) => { const { cli } = await runRstestCli({ command: 'rstest', - args: ['run', 'agent-md-pass', '-c', './rstest.agentMd.pass.config.ts'], + args: ['run', 'agent-md-pass', '-c', './rstest.agentMd.pass.config.mts'], onTestFinished, unsetEnv: UNSET_ENV, options: { @@ -861,7 +866,7 @@ describe('md', () => { 'run', 'agent-md/unhandled', '-c', - './rstest.agentMd.unhandled.config.ts', + './rstest.agentMd.unhandled.config.mts', ], onTestFinished, unsetEnv: UNSET_ENV, diff --git a/e2e/reporter/mergeReports.test.ts b/e2e/reporter/mergeReports.test.ts index 2ffdb895b..9ed38b238 100644 --- a/e2e/reporter/mergeReports.test.ts +++ b/e2e/reporter/mergeReports.test.ts @@ -95,7 +95,7 @@ describe('merge-reports', () => { '1/2', '--reporter=blob', '-c', - 'rstest.coverage.config.ts', + 'rstest.coverage.config.mts', ], options: { nodeOptions: { @@ -114,7 +114,7 @@ describe('merge-reports', () => { '2/2', '--reporter=blob', '-c', - 'rstest.coverage.config.ts', + 'rstest.coverage.config.mts', ], options: { nodeOptions: { @@ -128,7 +128,12 @@ describe('merge-reports', () => { const { cli: mergeCli, expectExecSuccess: mergeSuccess } = await runRstestCli({ command: 'rstest', - args: ['merge-reports', '--cleanup', '-c', 'rstest.coverage.config.ts'], + args: [ + 'merge-reports', + '--cleanup', + '-c', + 'rstest.coverage.config.mts', + ], options: { nodeOptions: { cwd: fixturesDir, diff --git a/e2e/reporter/rstest.agentMd.config.ts b/e2e/reporter/rstest.agentMd.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.config.ts rename to e2e/reporter/rstest.agentMd.config.mts diff --git a/e2e/reporter/rstest.agentMd.console.config.ts b/e2e/reporter/rstest.agentMd.console.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.console.config.ts rename to e2e/reporter/rstest.agentMd.console.config.mts diff --git a/e2e/reporter/rstest.agentMd.pass.config.ts b/e2e/reporter/rstest.agentMd.pass.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.pass.config.ts rename to e2e/reporter/rstest.agentMd.pass.config.mts diff --git a/e2e/reporter/rstest.agentMd.snapshotMismatch.config.ts b/e2e/reporter/rstest.agentMd.snapshotMismatch.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.snapshotMismatch.config.ts rename to e2e/reporter/rstest.agentMd.snapshotMismatch.config.mts diff --git a/e2e/reporter/rstest.agentMd.throw.config.ts b/e2e/reporter/rstest.agentMd.throw.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.throw.config.ts rename to e2e/reporter/rstest.agentMd.throw.config.mts diff --git a/e2e/reporter/rstest.agentMd.timeout.config.ts b/e2e/reporter/rstest.agentMd.timeout.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.timeout.config.ts rename to e2e/reporter/rstest.agentMd.timeout.config.mts diff --git a/e2e/reporter/rstest.agentMd.truncated.config.ts b/e2e/reporter/rstest.agentMd.truncated.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.truncated.config.ts rename to e2e/reporter/rstest.agentMd.truncated.config.mts diff --git a/e2e/reporter/rstest.agentMd.unhandled.config.ts b/e2e/reporter/rstest.agentMd.unhandled.config.mts similarity index 100% rename from e2e/reporter/rstest.agentMd.unhandled.config.ts rename to e2e/reporter/rstest.agentMd.unhandled.config.mts diff --git a/e2e/reporter/rstest.config.ts b/e2e/reporter/rstest.config.mts similarity index 100% rename from e2e/reporter/rstest.config.ts rename to e2e/reporter/rstest.config.mts diff --git a/e2e/rootDir/fixtures/rstest.config.ts b/e2e/rootDir/fixtures/rstest.config.mts similarity index 100% rename from e2e/rootDir/fixtures/rstest.config.ts rename to e2e/rootDir/fixtures/rstest.config.mts diff --git a/e2e/setup/fixtures/basic/rstest.config.ts b/e2e/setup/fixtures/basic/rstest.config.mts similarity index 100% rename from e2e/setup/fixtures/basic/rstest.config.ts rename to e2e/setup/fixtures/basic/rstest.config.mts diff --git a/e2e/setup/fixtures/error/rstest.config.ts b/e2e/setup/fixtures/error/rstest.config.mts similarity index 100% rename from e2e/setup/fixtures/error/rstest.config.ts rename to e2e/setup/fixtures/error/rstest.config.mts diff --git a/e2e/setup/fixtures/no-isolate/rstest.config.ts b/e2e/setup/fixtures/no-isolate/rstest.config.mts similarity index 100% rename from e2e/setup/fixtures/no-isolate/rstest.config.ts rename to e2e/setup/fixtures/no-isolate/rstest.config.mts diff --git a/e2e/setup/fixtures/package-name/rstest.config.ts b/e2e/setup/fixtures/package-name/rstest.config.mts similarity index 100% rename from e2e/setup/fixtures/package-name/rstest.config.ts rename to e2e/setup/fixtures/package-name/rstest.config.mts diff --git a/e2e/setup/fixtures/package-name/rstest.esm.config.ts b/e2e/setup/fixtures/package-name/rstest.esm.config.mts similarity index 100% rename from e2e/setup/fixtures/package-name/rstest.esm.config.ts rename to e2e/setup/fixtures/package-name/rstest.esm.config.mts diff --git a/e2e/setup/fixtures/package-name/rstest.fileProtocol.config.ts b/e2e/setup/fixtures/package-name/rstest.fileProtocol.config.mts similarity index 100% rename from e2e/setup/fixtures/package-name/rstest.fileProtocol.config.ts rename to e2e/setup/fixtures/package-name/rstest.fileProtocol.config.mts diff --git a/e2e/setup/index.test.ts b/e2e/setup/index.test.ts index 77f297692..05d4f317b 100644 --- a/e2e/setup/index.test.ts +++ b/e2e/setup/index.test.ts @@ -60,7 +60,7 @@ describe('test setup file', async () => { it('should resolve setup file correctly when setupFiles path with file protocol', async () => { const { expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.fileProtocol.config.ts'], + args: ['run', '-c', 'rstest.fileProtocol.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures/package-name'), @@ -73,7 +73,7 @@ describe('test setup file', async () => { it('should resolve setup file correctly when setupFile is pure es module', async () => { const { expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', '-c', 'rstest.esm.config.ts'], + args: ['run', '-c', 'rstest.esm.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures/package-name'), diff --git a/e2e/singleton/fixtures/rstest.config.ts b/e2e/singleton/fixtures/rstest.config.mts similarity index 100% rename from e2e/singleton/fixtures/rstest.config.ts rename to e2e/singleton/fixtures/rstest.config.mts diff --git a/e2e/snapshot/file.test.ts b/e2e/snapshot/file.test.ts index 428ec42a3..2b19049f9 100644 --- a/e2e/snapshot/file.test.ts +++ b/e2e/snapshot/file.test.ts @@ -81,7 +81,7 @@ describe('test snapshot', () => { 'fixtures/index.test.ts', '-u', '-c', - 'fixtures/rstest.snapshotPath.config.ts', + 'fixtures/rstest.snapshotPath.config.mts', ], options: { nodeOptions: { diff --git a/e2e/snapshot/fixtures/rstest.options.config.ts b/e2e/snapshot/fixtures/rstest.options.config.mts similarity index 100% rename from e2e/snapshot/fixtures/rstest.options.config.ts rename to e2e/snapshot/fixtures/rstest.options.config.mts diff --git a/e2e/snapshot/fixtures/rstest.snapshotPath.config.ts b/e2e/snapshot/fixtures/rstest.snapshotPath.config.mts similarity index 100% rename from e2e/snapshot/fixtures/rstest.snapshotPath.config.ts rename to e2e/snapshot/fixtures/rstest.snapshotPath.config.mts diff --git a/e2e/snapshot/options.test.ts b/e2e/snapshot/options.test.ts index f029b7e51..bd38e9feb 100644 --- a/e2e/snapshot/options.test.ts +++ b/e2e/snapshot/options.test.ts @@ -9,7 +9,7 @@ const __dirname = dirname(__filename); it('snapshotFormat', async () => { const { expectExecSuccess } = await runRstestCli({ command: 'rstest', - args: ['run', 'options.test.ts', '-c', 'rstest.options.config.ts'], + args: ['run', 'options.test.ts', '-c', 'rstest.options.config.mts'], options: { nodeOptions: { cwd: join(__dirname, 'fixtures'), diff --git a/e2e/ssr/fixtures/rstest.config.ts b/e2e/ssr/fixtures/rstest.config.mts similarity index 100% rename from e2e/ssr/fixtures/rstest.config.ts rename to e2e/ssr/fixtures/rstest.config.mts diff --git a/e2e/vue/fixtures/rstest.config.ts b/e2e/vue/fixtures/rstest.config.mts similarity index 100% rename from e2e/vue/fixtures/rstest.config.ts rename to e2e/vue/fixtures/rstest.config.mts diff --git a/e2e/watch/fixtures-setup/rstest.config.ts b/e2e/watch/fixtures-setup/rstest.config.mts similarity index 100% rename from e2e/watch/fixtures-setup/rstest.config.ts rename to e2e/watch/fixtures-setup/rstest.config.mts diff --git a/e2e/watch/fixtures-shortcuts/rstest.config.ts b/e2e/watch/fixtures-shortcuts/rstest.config.mts similarity index 100% rename from e2e/watch/fixtures-shortcuts/rstest.config.ts rename to e2e/watch/fixtures-shortcuts/rstest.config.mts diff --git a/e2e/watch/fixtures/rstest.config.ts b/e2e/watch/fixtures/rstest.config.mts similarity index 100% rename from e2e/watch/fixtures/rstest.config.ts rename to e2e/watch/fixtures/rstest.config.mts diff --git a/package.json b/package.json index 71371506f..784277868 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "nano-staged": { "*.{md,mdx,css,less,scss,json,jsonc,json5}": "prettier --write", - "*.{js,jsx,ts,tsx,mjs,cjs}": [ + "*.{js,jsx,ts,tsx,mjs,mts,cjs,cts}": [ "biome check --write" ], "package.json": [ diff --git a/packages/adapter-rsbuild/rslib.config.mts b/packages/adapter-rsbuild/rslib.config.mts index be81bf880..bed11e235 100644 --- a/packages/adapter-rsbuild/rslib.config.mts +++ b/packages/adapter-rsbuild/rslib.config.mts @@ -1,5 +1,5 @@ import { defineConfig } from '@rslib/core'; -import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin.ts'; +import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin'; export default defineConfig({ lib: [ diff --git a/packages/adapter-rslib/rslib.config.mts b/packages/adapter-rslib/rslib.config.mts index 25f5f699d..a12fb7d96 100644 --- a/packages/adapter-rslib/rslib.config.mts +++ b/packages/adapter-rslib/rslib.config.mts @@ -1,5 +1,5 @@ import { defineConfig } from '@rslib/core'; -import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin.ts'; +import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin'; export default defineConfig({ lib: [ diff --git a/packages/adapter-rspack/rslib.config.mts b/packages/adapter-rspack/rslib.config.mts index 25f5f699d..a12fb7d96 100644 --- a/packages/adapter-rspack/rslib.config.mts +++ b/packages/adapter-rspack/rslib.config.mts @@ -1,5 +1,5 @@ import { defineConfig } from '@rslib/core'; -import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin.ts'; +import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin'; export default defineConfig({ lib: [ diff --git a/packages/core/src/cli/init/browser/create.ts b/packages/core/src/cli/init/browser/create.ts index 2ae8be8ac..502889cb0 100644 --- a/packages/core/src/cli/init/browser/create.ts +++ b/packages/core/src/cli/init/browser/create.ts @@ -356,7 +356,7 @@ async function generateFiles( // 4. Update package.json scripts updatePackageJsonScripts(cwd, { - 'test:browser': 'rstest --config=rstest.browser.config.ts', + 'test:browser': 'rstest --config=rstest.browser.config.mts', }); // 5. Add devDependencies to package.json diff --git a/packages/core/src/cli/init/browser/templates.ts b/packages/core/src/cli/init/browser/templates.ts index ff56a178d..056a47032 100644 --- a/packages/core/src/cli/init/browser/templates.ts +++ b/packages/core/src/cli/init/browser/templates.ts @@ -5,7 +5,7 @@ export type Framework = 'react' | 'vanilla'; export type BrowserProvider = 'playwright'; /** - * Get rstest.config.ts template content. + * Get rstest.config.mts template content. */ export function getConfigTemplate(): string { return `import { defineConfig } from '@rstest/core'; @@ -233,5 +233,5 @@ export function getRunCommand(agent: Agent): string { * Get the config file name to create. */ export function getConfigFileName(): string { - return 'rstest.browser.config.ts'; + return 'rstest.browser.config.mts'; } diff --git a/packages/core/src/utils/constants.ts b/packages/core/src/utils/constants.ts index 1a2cda002..b8d6316ea 100644 --- a/packages/core/src/utils/constants.ts +++ b/packages/core/src/utils/constants.ts @@ -43,10 +43,10 @@ export const getTempRstestOutputDirGlob = (distPathRoot: string): string => { }; export const DEFAULT_CONFIG_EXTENSIONS = [ - '.js', - '.ts', - '.mjs', '.mts', + '.mjs', + '.ts', + '.js', '.cjs', '.cts', ] as const; diff --git a/packages/vscode/rslib.config.mts b/packages/vscode/rslib.config.mts index a6aa43e38..630a7f036 100644 --- a/packages/vscode/rslib.config.mts +++ b/packages/vscode/rslib.config.mts @@ -1,5 +1,5 @@ import { defineConfig } from '@rslib/core'; -import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin.ts'; +import { rsdoctorCIPlugin } from '../../scripts/rsdoctorPlugin'; export default defineConfig({ lib: [ diff --git a/packages/vscode/sample/rstest.config.ts b/packages/vscode/sample/rstest.config.mts similarity index 100% rename from packages/vscode/sample/rstest.config.ts rename to packages/vscode/sample/rstest.config.mts diff --git a/packages/vscode/tests/fixtures/workspace-1/rstest.config.ts b/packages/vscode/tests/fixtures/workspace-1/rstest.config.mts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-1/rstest.config.ts rename to packages/vscode/tests/fixtures/workspace-1/rstest.config.mts diff --git a/packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.ts b/packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.mts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.ts rename to packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.mts diff --git a/packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.ts b/packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.mts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.ts rename to packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.mts diff --git a/packages/vscode/tests/suite/workspace.test.ts b/packages/vscode/tests/suite/workspace.test.ts index caddb747d..0e8e61c72 100644 --- a/packages/vscode/tests/suite/workspace.test.ts +++ b/packages/vscode/tests/suite/workspace.test.ts @@ -69,7 +69,7 @@ suite('Workspace discover suite', () => { label: 'workspace-2', children: [ { - label: 'folder/project-2/rstest.config.ts', + label: 'folder/project-2/rstest.config.mts', children: [ { label: 'test', @@ -78,7 +78,7 @@ suite('Workspace discover suite', () => { ], }, { - label: 'project-1/rstest.config.ts', + label: 'project-1/rstest.config.mts', children: [ { label: 'test', @@ -93,13 +93,13 @@ suite('Workspace discover suite', () => { // remove config file await fs.rename( - path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.ts'), + path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.mts'), path.resolve(fixturesRoot, 'workspace-2/project-1/foo.config.ts'), ); await fs.rename( path.resolve( fixturesRoot, - 'workspace-2/folder/project-2/rstest.config.ts', + 'workspace-2/folder/project-2/rstest.config.mts', ), path.resolve(fixturesRoot, 'workspace-2/folder/project-2/bar.config.ts'), ); @@ -193,13 +193,13 @@ suite('Workspace discover suite', () => { // restore config file and configFileGlobPattern await fs.rename( path.resolve(fixturesRoot, 'workspace-2/project-1/foo.config.ts'), - path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.ts'), + path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.mts'), ); await fs.rename( path.resolve(fixturesRoot, 'workspace-2/folder/project-2/foo.config.ts'), path.resolve( fixturesRoot, - 'workspace-2/folder/project-2/rstest.config.ts', + 'workspace-2/folder/project-2/rstest.config.mts', ), ); await config.update('configFileGlobPattern', undefined); @@ -226,7 +226,7 @@ suite('Workspace discover suite', () => { label: 'workspace-2', children: [ { - label: 'folder/project-2/rstest.config.ts', + label: 'folder/project-2/rstest.config.mts', children: [ { label: 'test', @@ -235,7 +235,7 @@ suite('Workspace discover suite', () => { ], }, { - label: 'project-1/rstest.config.ts', + label: 'project-1/rstest.config.mts', children: [ { label: 'test', From 221b7267bfadb984718f28b3266d628f7c092333 Mon Sep 17 00:00:00 2001 From: 9aoy <9aoyuao@gmail.com> Date: Thu, 26 Mar 2026 11:28:58 +0800 Subject: [PATCH 2/3] fix: test --- packages/vscode/sample/{rstest.config.mts => rstest.config.ts} | 0 .../fixtures/workspace-1/{rstest.config.mts => rstest.config.ts} | 0 .../folder/project-2/{rstest.config.mts => rstest.config.ts} | 0 .../workspace-2/project-1/{rstest.config.mts => rstest.config.ts} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename packages/vscode/sample/{rstest.config.mts => rstest.config.ts} (100%) rename packages/vscode/tests/fixtures/workspace-1/{rstest.config.mts => rstest.config.ts} (100%) rename packages/vscode/tests/fixtures/workspace-2/folder/project-2/{rstest.config.mts => rstest.config.ts} (100%) rename packages/vscode/tests/fixtures/workspace-2/project-1/{rstest.config.mts => rstest.config.ts} (100%) diff --git a/packages/vscode/sample/rstest.config.mts b/packages/vscode/sample/rstest.config.ts similarity index 100% rename from packages/vscode/sample/rstest.config.mts rename to packages/vscode/sample/rstest.config.ts diff --git a/packages/vscode/tests/fixtures/workspace-1/rstest.config.mts b/packages/vscode/tests/fixtures/workspace-1/rstest.config.ts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-1/rstest.config.mts rename to packages/vscode/tests/fixtures/workspace-1/rstest.config.ts diff --git a/packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.mts b/packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.ts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.mts rename to packages/vscode/tests/fixtures/workspace-2/folder/project-2/rstest.config.ts diff --git a/packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.mts b/packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.ts similarity index 100% rename from packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.mts rename to packages/vscode/tests/fixtures/workspace-2/project-1/rstest.config.ts From d858bfdad0a2456aeed3e506333d72e1a080bacd Mon Sep 17 00:00:00 2001 From: 9aoy <9aoyuao@gmail.com> Date: Thu, 26 Mar 2026 11:54:03 +0800 Subject: [PATCH 3/3] fix: vscode test --- packages/vscode/tests/suite/workspace.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/vscode/tests/suite/workspace.test.ts b/packages/vscode/tests/suite/workspace.test.ts index 0e8e61c72..caddb747d 100644 --- a/packages/vscode/tests/suite/workspace.test.ts +++ b/packages/vscode/tests/suite/workspace.test.ts @@ -69,7 +69,7 @@ suite('Workspace discover suite', () => { label: 'workspace-2', children: [ { - label: 'folder/project-2/rstest.config.mts', + label: 'folder/project-2/rstest.config.ts', children: [ { label: 'test', @@ -78,7 +78,7 @@ suite('Workspace discover suite', () => { ], }, { - label: 'project-1/rstest.config.mts', + label: 'project-1/rstest.config.ts', children: [ { label: 'test', @@ -93,13 +93,13 @@ suite('Workspace discover suite', () => { // remove config file await fs.rename( - path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.mts'), + path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.ts'), path.resolve(fixturesRoot, 'workspace-2/project-1/foo.config.ts'), ); await fs.rename( path.resolve( fixturesRoot, - 'workspace-2/folder/project-2/rstest.config.mts', + 'workspace-2/folder/project-2/rstest.config.ts', ), path.resolve(fixturesRoot, 'workspace-2/folder/project-2/bar.config.ts'), ); @@ -193,13 +193,13 @@ suite('Workspace discover suite', () => { // restore config file and configFileGlobPattern await fs.rename( path.resolve(fixturesRoot, 'workspace-2/project-1/foo.config.ts'), - path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.mts'), + path.resolve(fixturesRoot, 'workspace-2/project-1/rstest.config.ts'), ); await fs.rename( path.resolve(fixturesRoot, 'workspace-2/folder/project-2/foo.config.ts'), path.resolve( fixturesRoot, - 'workspace-2/folder/project-2/rstest.config.mts', + 'workspace-2/folder/project-2/rstest.config.ts', ), ); await config.update('configFileGlobPattern', undefined); @@ -226,7 +226,7 @@ suite('Workspace discover suite', () => { label: 'workspace-2', children: [ { - label: 'folder/project-2/rstest.config.mts', + label: 'folder/project-2/rstest.config.ts', children: [ { label: 'test', @@ -235,7 +235,7 @@ suite('Workspace discover suite', () => { ], }, { - label: 'project-1/rstest.config.mts', + label: 'project-1/rstest.config.ts', children: [ { label: 'test',