diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml index b788670ee..679a7f935 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-ubuntu.yml @@ -100,7 +100,7 @@ jobs: - name: Features Integration Test (Vitest) if: steps.changes.outputs.changed == 'true' - run: pnpm run test:features + run: pnpm run test:integration - name: Examples E2E Test (Playwright) if: steps.changes.outputs.changed == 'true' diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 3b2bccc68..a2cbbffcb 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -110,7 +110,7 @@ jobs: - name: Features Integration Test (Vitest) if: steps.changes.outputs.changed == 'true' - run: pnpm run test:features + run: pnpm run test:integration - name: Examples E2E Test (Playwright) if: steps.changes.outputs.changed == 'true' diff --git a/biome.json b/biome.json index fcdfd05fd..3bdc8c582 100644 --- a/biome.json +++ b/biome.json @@ -36,7 +36,7 @@ }, "linter": { "enabled": true, - "ignore": ["./tests/features/**/*/src/*"], + "ignore": ["./tests/integration/**/*/src/*"], "rules": { "recommended": true, "style": { diff --git a/package.json b/package.json index 195f34586..ed32378e5 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "prebundle": "nx run-many -t prebundle", "prepare": "pnpm run build && simple-git-hooks", "sort-package-json": "npx sort-package-json \"packages/*/package.json\"", - "test": "pnpm run test:unit && pnpm run test:features && pnpm run test:e2e", + "test": "pnpm run test:unit && pnpm run test:integration && pnpm run test:e2e", "test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e", - "test:features": "vitest run --project features", - "test:features:watch": "vitest --project features", + "test:integration": "vitest run --project integration", + "test:integration:watch": "vitest --project integration", "test:unit": "vitest run --project unit*", "test:unit:watch": "vitest --project unit*", - "test:update": "pnpm run test:unit -u && pnpm run test:features -u", + "testu": "pnpm run test:unit -u && pnpm run test:integration -u", "update:rsbuild": "npx taze minor --include /rsbuild/ -w -r -l", "watch": "pnpm build --watch" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89560a381..8ca66ddf2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -248,11 +248,11 @@ importers: tests/e2e/react-component: {} - tests/features/alias: {} + tests/integration/alias: {} - tests/features/asset/limit: {} + tests/integration/asset/limit: {} - tests/features/asset/name: + tests/integration/asset/name: dependencies: react: specifier: ^18.3.1 @@ -262,11 +262,11 @@ importers: specifier: ^1.0.2 version: 1.0.2(@rsbuild/core@1.0.7) - tests/features/asset/path: {} + tests/integration/asset/path: {} - tests/features/asset/public-path: {} + tests/integration/asset/public-path: {} - tests/features/asset/svgr: + tests/integration/asset/svgr: dependencies: react: specifier: ^18 @@ -279,19 +279,19 @@ importers: specifier: 1.0.2 version: 1.0.2(@rsbuild/core@1.0.7)(typescript@5.6.2) - tests/features/auto-extension/type-commonjs/config-override: {} + tests/integration/auto-extension/type-commonjs/config-override: {} - tests/features/auto-extension/type-commonjs/default: {} + tests/integration/auto-extension/type-commonjs/default: {} - tests/features/auto-extension/type-commonjs/false: {} + tests/integration/auto-extension/type-commonjs/false: {} - tests/features/auto-extension/type-module/config-override: {} + tests/integration/auto-extension/type-module/config-override: {} - tests/features/auto-extension/type-module/default: {} + tests/integration/auto-extension/type-module/default: {} - tests/features/auto-extension/type-module/false: {} + tests/integration/auto-extension/type-module/false: {} - tests/features/auto-external/default: + tests/integration/auto-external/default: dependencies: ora: specifier: 8.1.0 @@ -300,13 +300,13 @@ importers: specifier: ^18.3.1 version: 18.3.1 - tests/features/auto-external/external-sub-path: + tests/integration/auto-external/external-sub-path: dependencies: react: specifier: ^18.3.1 version: 18.3.1 - tests/features/auto-external/false: + tests/integration/auto-external/false: dependencies: ora: specifier: 8.1.0 @@ -315,29 +315,29 @@ importers: specifier: ^18.3.1 version: 18.3.1 - tests/features/auto-external/module-import-warn: + tests/integration/auto-external/module-import-warn: dependencies: react: specifier: ^18.3.1 version: 18.3.1 - tests/features/auto-external/with-externals: + tests/integration/auto-external/with-externals: dependencies: react: specifier: ^18.3.1 version: 18.3.1 - tests/features/banner-footer: {} + tests/integration/banner-footer: {} - tests/features/bundle-false/asset: {} + tests/integration/bundle-false/asset: {} - tests/features/bundle-false/basic: {} + tests/integration/bundle-false/basic: {} - tests/features/bundle-false/js-extension: {} + tests/integration/bundle-false/js-extension: {} - tests/features/bundle-false/single-file: {} + tests/integration/bundle-false/single-file: {} - tests/features/bundle-false/svgr: + tests/integration/bundle-false/svgr: dependencies: react: specifier: ^18.3.1 @@ -350,109 +350,109 @@ importers: specifier: 1.0.2 version: 1.0.2(@rsbuild/core@1.0.7)(typescript@5.6.2) - tests/features/cli: {} + tests/integration/cli: {} - tests/features/copy: {} + tests/integration/copy: {} - tests/features/decorators/default: {} + tests/integration/decorators/default: {} - tests/features/decorators/tsconfig: {} + tests/integration/decorators/tsconfig: {} - tests/features/define: {} + tests/integration/define: {} - tests/features/dts/bundle-false/abort-on-error: {} + tests/integration/dts/bundle-false/abort-on-error: {} - tests/features/dts/bundle-false/auto-extension: {} + tests/integration/dts/bundle-false/auto-extension: {} - tests/features/dts/bundle-false/basic: {} + tests/integration/dts/bundle-false/basic: {} - tests/features/dts/bundle-false/dist-path: {} + tests/integration/dts/bundle-false/dist-path: {} - tests/features/dts/bundle-false/false: {} + tests/integration/dts/bundle-false/false: {} - tests/features/dts/bundle/abort-on-error: {} + tests/integration/dts/bundle/abort-on-error: {} - tests/features/dts/bundle/absolute-entry: {} + tests/integration/dts/bundle/absolute-entry: {} - tests/features/dts/bundle/auto-extension: {} + tests/integration/dts/bundle/auto-extension: {} - tests/features/dts/bundle/basic: {} + tests/integration/dts/bundle/basic: {} - tests/features/dts/bundle/bundle-name: {} + tests/integration/dts/bundle/bundle-name: {} - tests/features/dts/bundle/dist-path: {} + tests/integration/dts/bundle/dist-path: {} - tests/features/dts/bundle/false: {} + tests/integration/dts/bundle/false: {} - tests/features/entry/glob: {} + tests/integration/entry/glob: {} - tests/features/entry/multiple: {} + tests/integration/entry/multiple: {} - tests/features/entry/single: {} + tests/integration/entry/single: {} - tests/features/extension-alias: {} + tests/integration/extension-alias: {} - tests/features/external-helpers/config-override: + tests/integration/external-helpers/config-override: dependencies: '@swc/helpers': specifier: 0.5.13 version: 0.5.13 - tests/features/external-helpers/default: {} + tests/integration/external-helpers/default: {} - tests/features/external-helpers/no-deps: {} + tests/integration/external-helpers/no-deps: {} - tests/features/external-helpers/true: + tests/integration/external-helpers/true: dependencies: '@swc/helpers': specifier: 0.5.13 version: 0.5.13 - tests/features/externals/browser: {} + tests/integration/externals/browser: {} - tests/features/externals/module-import-warn: {} + tests/integration/externals/module-import-warn: {} - tests/features/externals/node: {} + tests/integration/externals/node: {} - tests/features/minify/config: {} + tests/integration/minify/config: {} - tests/features/minify/default: {} + tests/integration/minify/default: {} - tests/features/resolve/data-url: {} + tests/integration/resolve/data-url: {} - tests/features/resolve/false: {} + tests/integration/resolve/false: {} - tests/features/resolve/false/browser-false: {} + tests/integration/resolve/false/browser-false: {} - tests/features/resolve/node-protocol: {} + tests/integration/resolve/node-protocol: {} - tests/features/resolve/with-condition-exports: {} + tests/integration/resolve/with-condition-exports: {} - tests/features/resolve/with-js-extensions: {} + tests/integration/resolve/with-js-extensions: {} - tests/features/resolve/with-main-fields: {} + tests/integration/resolve/with-main-fields: {} - tests/features/shims/cjs: {} + tests/integration/shims/cjs: {} - tests/features/shims/esm: {} + tests/integration/shims/esm: {} - tests/features/sourcemap/default: {} + tests/integration/sourcemap/default: {} - tests/features/sourcemap/external: {} + tests/integration/sourcemap/external: {} - tests/features/sourcemap/inline: {} + tests/integration/sourcemap/inline: {} - tests/features/syntax/config: {} + tests/integration/syntax/config: {} - tests/features/syntax/default: {} + tests/integration/syntax/default: {} - tests/features/transform-import/arco-design: + tests/integration/transform-import/arco-design: dependencies: '@arco-design/web-react': specifier: ^2.64.0 version: 2.64.0(@types/react@18.3.9)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - tests/features/transform-import/lodash: + tests/integration/transform-import/lodash: dependencies: lodash: specifier: ^4.17.21 @@ -462,7 +462,7 @@ importers: specifier: ^4.17.7 version: 4.17.9 - tests/features/tsconfig: {} + tests/integration/tsconfig: {} tests/scripts: {} diff --git a/tests/features/copy/index.test.ts b/tests/features/copy/index.test.ts deleted file mode 100644 index 4e0cad5dd..000000000 --- a/tests/features/copy/index.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { join } from 'node:path'; -import { buildAndGetResults, generateFileTree } from 'test-helper'; -import { expect, test } from 'vitest'; - -test('copy', async () => { - const fixturePath = __dirname; - await buildAndGetResults(fixturePath); - - const fileTree = generateFileTree(join(fixturePath, './dist/esm')); - expect(fileTree).toMatchInlineSnapshot(` - { - "index.js": "/tests/features/copy/dist/esm/index.js", - "temp-1": { - "b.png": "/tests/features/copy/dist/esm/temp-1/b.png", - }, - "temp-2": { - "a.png": "/tests/features/copy/dist/esm/temp-2/a.png", - }, - "temp-3": { - "a.png": "/tests/features/copy/dist/esm/temp-3/a.png", - "b.txt": "/tests/features/copy/dist/esm/temp-3/b.txt", - }, - "temp-4": { - "_index.html": "/tests/features/copy/dist/esm/temp-4/_index.html", - }, - "temp-5": { - "index.html": "/tests/features/copy/dist/esm/temp-5/index.html", - }, - "temp-6": { - "index.html": "/tests/features/copy/dist/esm/temp-6/index.html", - }, - } - `); -}); diff --git a/tests/features/alias/__snapshots__/index.test.ts.snap b/tests/integration/alias/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/alias/__snapshots__/index.test.ts.snap rename to tests/integration/alias/__snapshots__/index.test.ts.snap diff --git a/tests/features/alias/index.test.ts b/tests/integration/alias/index.test.ts similarity index 100% rename from tests/features/alias/index.test.ts rename to tests/integration/alias/index.test.ts diff --git a/tests/features/alias/package.json b/tests/integration/alias/package.json similarity index 100% rename from tests/features/alias/package.json rename to tests/integration/alias/package.json diff --git a/tests/features/alias/rslib.config.ts b/tests/integration/alias/rslib.config.ts similarity index 100% rename from tests/features/alias/rslib.config.ts rename to tests/integration/alias/rslib.config.ts diff --git a/tests/features/alias/src/a.ts b/tests/integration/alias/src/a.ts similarity index 100% rename from tests/features/alias/src/a.ts rename to tests/integration/alias/src/a.ts diff --git a/tests/features/alias/src/index.ts b/tests/integration/alias/src/index.ts similarity index 100% rename from tests/features/alias/src/index.ts rename to tests/integration/alias/src/index.ts diff --git a/tests/features/alias/tsconfig.json b/tests/integration/alias/tsconfig.json similarity index 100% rename from tests/features/alias/tsconfig.json rename to tests/integration/alias/tsconfig.json diff --git a/tests/features/asset/__snapshots__/index.test.ts.snap b/tests/integration/asset/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/asset/__snapshots__/index.test.ts.snap rename to tests/integration/asset/__snapshots__/index.test.ts.snap diff --git a/tests/features/asset/index.test.ts b/tests/integration/asset/index.test.ts similarity index 100% rename from tests/features/asset/index.test.ts rename to tests/integration/asset/index.test.ts diff --git a/tests/features/asset/limit/package.json b/tests/integration/asset/limit/package.json similarity index 100% rename from tests/features/asset/limit/package.json rename to tests/integration/asset/limit/package.json diff --git a/tests/features/asset/limit/rslib.config.ts b/tests/integration/asset/limit/rslib.config.ts similarity index 100% rename from tests/features/asset/limit/rslib.config.ts rename to tests/integration/asset/limit/rslib.config.ts diff --git a/tests/features/asset/limit/src/index.js b/tests/integration/asset/limit/src/index.js similarity index 100% rename from tests/features/asset/limit/src/index.js rename to tests/integration/asset/limit/src/index.js diff --git a/tests/features/asset/name/package.json b/tests/integration/asset/name/package.json similarity index 100% rename from tests/features/asset/name/package.json rename to tests/integration/asset/name/package.json diff --git a/tests/features/asset/name/rslib.config.ts b/tests/integration/asset/name/rslib.config.ts similarity index 100% rename from tests/features/asset/name/rslib.config.ts rename to tests/integration/asset/name/rslib.config.ts diff --git a/tests/features/asset/name/src/index.jsx b/tests/integration/asset/name/src/index.jsx similarity index 100% rename from tests/features/asset/name/src/index.jsx rename to tests/integration/asset/name/src/index.jsx diff --git a/tests/features/asset/path/package.json b/tests/integration/asset/path/package.json similarity index 100% rename from tests/features/asset/path/package.json rename to tests/integration/asset/path/package.json diff --git a/tests/features/asset/path/rslib.config.ts b/tests/integration/asset/path/rslib.config.ts similarity index 100% rename from tests/features/asset/path/rslib.config.ts rename to tests/integration/asset/path/rslib.config.ts diff --git a/tests/features/asset/path/src/index.js b/tests/integration/asset/path/src/index.js similarity index 100% rename from tests/features/asset/path/src/index.js rename to tests/integration/asset/path/src/index.js diff --git a/tests/features/asset/public-path/package.json b/tests/integration/asset/public-path/package.json similarity index 100% rename from tests/features/asset/public-path/package.json rename to tests/integration/asset/public-path/package.json diff --git a/tests/features/asset/public-path/rslib.config.ts b/tests/integration/asset/public-path/rslib.config.ts similarity index 100% rename from tests/features/asset/public-path/rslib.config.ts rename to tests/integration/asset/public-path/rslib.config.ts diff --git a/tests/features/asset/public-path/src/index.js b/tests/integration/asset/public-path/src/index.js similarity index 100% rename from tests/features/asset/public-path/src/index.js rename to tests/integration/asset/public-path/src/index.js diff --git a/tests/features/asset/svgr/package.json b/tests/integration/asset/svgr/package.json similarity index 100% rename from tests/features/asset/svgr/package.json rename to tests/integration/asset/svgr/package.json diff --git a/tests/features/asset/svgr/rslib.config.ts b/tests/integration/asset/svgr/rslib.config.ts similarity index 100% rename from tests/features/asset/svgr/rslib.config.ts rename to tests/integration/asset/svgr/rslib.config.ts diff --git a/tests/features/asset/svgr/src/index.js b/tests/integration/asset/svgr/src/index.js similarity index 100% rename from tests/features/asset/svgr/src/index.js rename to tests/integration/asset/svgr/src/index.js diff --git a/tests/features/asset/svgr/src/namedExport.js b/tests/integration/asset/svgr/src/namedExport.js similarity index 100% rename from tests/features/asset/svgr/src/namedExport.js rename to tests/integration/asset/svgr/src/namedExport.js diff --git a/tests/features/auto-extension/__fixtures__/src/common.ts b/tests/integration/auto-extension/__fixtures__/src/common.ts similarity index 100% rename from tests/features/auto-extension/__fixtures__/src/common.ts rename to tests/integration/auto-extension/__fixtures__/src/common.ts diff --git a/tests/features/auto-extension/__fixtures__/src/index.ts b/tests/integration/auto-extension/__fixtures__/src/index.ts similarity index 100% rename from tests/features/auto-extension/__fixtures__/src/index.ts rename to tests/integration/auto-extension/__fixtures__/src/index.ts diff --git a/tests/features/auto-extension/index.test.ts b/tests/integration/auto-extension/index.test.ts similarity index 91% rename from tests/features/auto-extension/index.test.ts rename to tests/integration/auto-extension/index.test.ts index c4c57d6d0..3efc43e4e 100644 --- a/tests/features/auto-extension/index.test.ts +++ b/tests/integration/auto-extension/index.test.ts @@ -40,7 +40,7 @@ describe('should respect output.filename.js to override builtin logic', () => { const { entryFiles } = await buildAndGetResults(fixturePath); expect(extname(entryFiles.esm!)).toEqual('.mjs'); expect(entryFiles.cjs).toMatchInlineSnapshot( - `"/tests/features/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"`, + `"/tests/integration/auto-extension/type-commonjs/config-override/dist/cjs/index.d08e1bb3.js"`, ); }); @@ -48,7 +48,7 @@ describe('should respect output.filename.js to override builtin logic', () => { const fixturePath = join(__dirname, 'type-module', 'config-override'); const { entryFiles } = await buildAndGetResults(fixturePath); expect(entryFiles.esm).toMatchInlineSnapshot( - `"/tests/features/auto-extension/type-module/config-override/dist/esm/index.d2068839.js"`, + `"/tests/integration/auto-extension/type-module/config-override/dist/esm/index.d2068839.js"`, ); expect(extname(entryFiles.cjs!)).toEqual('.cjs'); }); diff --git a/tests/features/auto-extension/type-commonjs/config-override/package.json b/tests/integration/auto-extension/type-commonjs/config-override/package.json similarity index 100% rename from tests/features/auto-extension/type-commonjs/config-override/package.json rename to tests/integration/auto-extension/type-commonjs/config-override/package.json diff --git a/tests/features/auto-extension/type-commonjs/config-override/rslib.config.ts b/tests/integration/auto-extension/type-commonjs/config-override/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-commonjs/config-override/rslib.config.ts rename to tests/integration/auto-extension/type-commonjs/config-override/rslib.config.ts diff --git a/tests/features/auto-extension/type-commonjs/default/package.json b/tests/integration/auto-extension/type-commonjs/default/package.json similarity index 100% rename from tests/features/auto-extension/type-commonjs/default/package.json rename to tests/integration/auto-extension/type-commonjs/default/package.json diff --git a/tests/features/auto-extension/type-commonjs/default/rslib.config.ts b/tests/integration/auto-extension/type-commonjs/default/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-commonjs/default/rslib.config.ts rename to tests/integration/auto-extension/type-commonjs/default/rslib.config.ts diff --git a/tests/features/auto-extension/type-commonjs/false/package.json b/tests/integration/auto-extension/type-commonjs/false/package.json similarity index 100% rename from tests/features/auto-extension/type-commonjs/false/package.json rename to tests/integration/auto-extension/type-commonjs/false/package.json diff --git a/tests/features/auto-extension/type-commonjs/false/rslib.config.ts b/tests/integration/auto-extension/type-commonjs/false/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-commonjs/false/rslib.config.ts rename to tests/integration/auto-extension/type-commonjs/false/rslib.config.ts diff --git a/tests/features/auto-extension/type-module/config-override/package.json b/tests/integration/auto-extension/type-module/config-override/package.json similarity index 100% rename from tests/features/auto-extension/type-module/config-override/package.json rename to tests/integration/auto-extension/type-module/config-override/package.json diff --git a/tests/features/auto-extension/type-module/config-override/rslib.config.ts b/tests/integration/auto-extension/type-module/config-override/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-module/config-override/rslib.config.ts rename to tests/integration/auto-extension/type-module/config-override/rslib.config.ts diff --git a/tests/features/auto-extension/type-module/default/package.json b/tests/integration/auto-extension/type-module/default/package.json similarity index 100% rename from tests/features/auto-extension/type-module/default/package.json rename to tests/integration/auto-extension/type-module/default/package.json diff --git a/tests/features/auto-extension/type-module/default/rslib.config.ts b/tests/integration/auto-extension/type-module/default/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-module/default/rslib.config.ts rename to tests/integration/auto-extension/type-module/default/rslib.config.ts diff --git a/tests/features/auto-extension/type-module/false/package.json b/tests/integration/auto-extension/type-module/false/package.json similarity index 100% rename from tests/features/auto-extension/type-module/false/package.json rename to tests/integration/auto-extension/type-module/false/package.json diff --git a/tests/features/auto-extension/type-module/false/rslib.config.ts b/tests/integration/auto-extension/type-module/false/rslib.config.ts similarity index 100% rename from tests/features/auto-extension/type-module/false/rslib.config.ts rename to tests/integration/auto-extension/type-module/false/rslib.config.ts diff --git a/tests/features/auto-external/__fixtures__/src/index.ts b/tests/integration/auto-external/__fixtures__/src/index.ts similarity index 100% rename from tests/features/auto-external/__fixtures__/src/index.ts rename to tests/integration/auto-external/__fixtures__/src/index.ts diff --git a/tests/features/auto-external/default/package.json b/tests/integration/auto-external/default/package.json similarity index 100% rename from tests/features/auto-external/default/package.json rename to tests/integration/auto-external/default/package.json diff --git a/tests/features/auto-external/default/rslib.config.ts b/tests/integration/auto-external/default/rslib.config.ts similarity index 100% rename from tests/features/auto-external/default/rslib.config.ts rename to tests/integration/auto-external/default/rslib.config.ts diff --git a/tests/features/auto-external/default/src/index.ts b/tests/integration/auto-external/default/src/index.ts similarity index 100% rename from tests/features/auto-external/default/src/index.ts rename to tests/integration/auto-external/default/src/index.ts diff --git a/tests/features/auto-external/default/tsconfig.json b/tests/integration/auto-external/default/tsconfig.json similarity index 100% rename from tests/features/auto-external/default/tsconfig.json rename to tests/integration/auto-external/default/tsconfig.json diff --git a/tests/features/auto-external/external-sub-path/package.json b/tests/integration/auto-external/external-sub-path/package.json similarity index 100% rename from tests/features/auto-external/external-sub-path/package.json rename to tests/integration/auto-external/external-sub-path/package.json diff --git a/tests/features/auto-external/external-sub-path/rslib.config.ts b/tests/integration/auto-external/external-sub-path/rslib.config.ts similarity index 100% rename from tests/features/auto-external/external-sub-path/rslib.config.ts rename to tests/integration/auto-external/external-sub-path/rslib.config.ts diff --git a/tests/features/auto-external/external-sub-path/src/index.ts b/tests/integration/auto-external/external-sub-path/src/index.ts similarity index 100% rename from tests/features/auto-external/external-sub-path/src/index.ts rename to tests/integration/auto-external/external-sub-path/src/index.ts diff --git a/tests/features/auto-external/false/package.json b/tests/integration/auto-external/false/package.json similarity index 100% rename from tests/features/auto-external/false/package.json rename to tests/integration/auto-external/false/package.json diff --git a/tests/features/auto-external/false/rslib.config.ts b/tests/integration/auto-external/false/rslib.config.ts similarity index 100% rename from tests/features/auto-external/false/rslib.config.ts rename to tests/integration/auto-external/false/rslib.config.ts diff --git a/tests/features/auto-external/false/src/index.ts b/tests/integration/auto-external/false/src/index.ts similarity index 100% rename from tests/features/auto-external/false/src/index.ts rename to tests/integration/auto-external/false/src/index.ts diff --git a/tests/features/auto-external/false/tsconfig.json b/tests/integration/auto-external/false/tsconfig.json similarity index 100% rename from tests/features/auto-external/false/tsconfig.json rename to tests/integration/auto-external/false/tsconfig.json diff --git a/tests/features/auto-external/index.test.ts b/tests/integration/auto-external/index.test.ts similarity index 100% rename from tests/features/auto-external/index.test.ts rename to tests/integration/auto-external/index.test.ts diff --git a/tests/features/auto-external/module-import-warn/package.json b/tests/integration/auto-external/module-import-warn/package.json similarity index 100% rename from tests/features/auto-external/module-import-warn/package.json rename to tests/integration/auto-external/module-import-warn/package.json diff --git a/tests/features/auto-external/module-import-warn/rslib.config.ts b/tests/integration/auto-external/module-import-warn/rslib.config.ts similarity index 100% rename from tests/features/auto-external/module-import-warn/rslib.config.ts rename to tests/integration/auto-external/module-import-warn/rslib.config.ts diff --git a/tests/features/auto-external/module-import-warn/src/index.ts b/tests/integration/auto-external/module-import-warn/src/index.ts similarity index 100% rename from tests/features/auto-external/module-import-warn/src/index.ts rename to tests/integration/auto-external/module-import-warn/src/index.ts diff --git a/tests/features/auto-external/with-externals/package.json b/tests/integration/auto-external/with-externals/package.json similarity index 100% rename from tests/features/auto-external/with-externals/package.json rename to tests/integration/auto-external/with-externals/package.json diff --git a/tests/features/auto-external/with-externals/rslib.config.ts b/tests/integration/auto-external/with-externals/rslib.config.ts similarity index 100% rename from tests/features/auto-external/with-externals/rslib.config.ts rename to tests/integration/auto-external/with-externals/rslib.config.ts diff --git a/tests/features/banner-footer/index.test.ts b/tests/integration/banner-footer/index.test.ts similarity index 100% rename from tests/features/banner-footer/index.test.ts rename to tests/integration/banner-footer/index.test.ts diff --git a/tests/features/banner-footer/package.json b/tests/integration/banner-footer/package.json similarity index 100% rename from tests/features/banner-footer/package.json rename to tests/integration/banner-footer/package.json diff --git a/tests/features/banner-footer/rslib.config.ts b/tests/integration/banner-footer/rslib.config.ts similarity index 100% rename from tests/features/banner-footer/rslib.config.ts rename to tests/integration/banner-footer/rslib.config.ts diff --git a/tests/features/banner-footer/src/foo.ts b/tests/integration/banner-footer/src/foo.ts similarity index 100% rename from tests/features/banner-footer/src/foo.ts rename to tests/integration/banner-footer/src/foo.ts diff --git a/tests/features/banner-footer/src/index.css b/tests/integration/banner-footer/src/index.css similarity index 100% rename from tests/features/banner-footer/src/index.css rename to tests/integration/banner-footer/src/index.css diff --git a/tests/features/banner-footer/src/index.ts b/tests/integration/banner-footer/src/index.ts similarity index 100% rename from tests/features/banner-footer/src/index.ts rename to tests/integration/banner-footer/src/index.ts diff --git a/tests/features/banner-footer/tsconfig.json b/tests/integration/banner-footer/tsconfig.json similarity index 100% rename from tests/features/banner-footer/tsconfig.json rename to tests/integration/banner-footer/tsconfig.json diff --git a/tests/features/bundle-false/__snapshots__/index.test.ts.snap b/tests/integration/bundle-false/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/bundle-false/__snapshots__/index.test.ts.snap rename to tests/integration/bundle-false/__snapshots__/index.test.ts.snap diff --git a/tests/features/bundle-false/asset/package.json b/tests/integration/bundle-false/asset/package.json similarity index 100% rename from tests/features/bundle-false/asset/package.json rename to tests/integration/bundle-false/asset/package.json diff --git a/tests/features/bundle-false/asset/rslib.config.ts b/tests/integration/bundle-false/asset/rslib.config.ts similarity index 100% rename from tests/features/bundle-false/asset/rslib.config.ts rename to tests/integration/bundle-false/asset/rslib.config.ts diff --git a/tests/features/bundle-false/asset/src/index.js b/tests/integration/bundle-false/asset/src/index.js similarity index 100% rename from tests/features/bundle-false/asset/src/index.js rename to tests/integration/bundle-false/asset/src/index.js diff --git a/tests/features/bundle-false/basic/package.json b/tests/integration/bundle-false/basic/package.json similarity index 100% rename from tests/features/bundle-false/basic/package.json rename to tests/integration/bundle-false/basic/package.json diff --git a/tests/features/bundle-false/basic/rslib.config.ts b/tests/integration/bundle-false/basic/rslib.config.ts similarity index 100% rename from tests/features/bundle-false/basic/rslib.config.ts rename to tests/integration/bundle-false/basic/rslib.config.ts diff --git a/tests/features/bundle-false/basic/src/index.ts b/tests/integration/bundle-false/basic/src/index.ts similarity index 100% rename from tests/features/bundle-false/basic/src/index.ts rename to tests/integration/bundle-false/basic/src/index.ts diff --git a/tests/features/bundle-false/basic/src/sum.ts b/tests/integration/bundle-false/basic/src/sum.ts similarity index 100% rename from tests/features/bundle-false/basic/src/sum.ts rename to tests/integration/bundle-false/basic/src/sum.ts diff --git a/tests/features/bundle-false/basic/src/utils/numbers.ts b/tests/integration/bundle-false/basic/src/utils/numbers.ts similarity index 100% rename from tests/features/bundle-false/basic/src/utils/numbers.ts rename to tests/integration/bundle-false/basic/src/utils/numbers.ts diff --git a/tests/features/bundle-false/basic/src/utils/strings.ts b/tests/integration/bundle-false/basic/src/utils/strings.ts similarity index 100% rename from tests/features/bundle-false/basic/src/utils/strings.ts rename to tests/integration/bundle-false/basic/src/utils/strings.ts diff --git a/tests/features/bundle-false/basic/tsconfig.json b/tests/integration/bundle-false/basic/tsconfig.json similarity index 100% rename from tests/features/bundle-false/basic/tsconfig.json rename to tests/integration/bundle-false/basic/tsconfig.json diff --git a/tests/features/bundle-false/index.test.ts b/tests/integration/bundle-false/index.test.ts similarity index 76% rename from tests/features/bundle-false/index.test.ts rename to tests/integration/bundle-false/index.test.ts index 2b1d15af3..25feec20e 100644 --- a/tests/features/bundle-false/index.test.ts +++ b/tests/integration/bundle-false/index.test.ts @@ -8,18 +8,18 @@ test('basic', async () => { expect(files.esm).toMatchInlineSnapshot(` [ - "/tests/features/bundle-false/basic/dist/esm/index.js", - "/tests/features/bundle-false/basic/dist/esm/sum.js", - "/tests/features/bundle-false/basic/dist/esm/utils/numbers.js", - "/tests/features/bundle-false/basic/dist/esm/utils/strings.js", + "/tests/integration/bundle-false/basic/dist/esm/index.js", + "/tests/integration/bundle-false/basic/dist/esm/sum.js", + "/tests/integration/bundle-false/basic/dist/esm/utils/numbers.js", + "/tests/integration/bundle-false/basic/dist/esm/utils/strings.js", ] `); expect(files.cjs).toMatchInlineSnapshot(` [ - "/tests/features/bundle-false/basic/dist/cjs/index.cjs", - "/tests/features/bundle-false/basic/dist/cjs/sum.cjs", - "/tests/features/bundle-false/basic/dist/cjs/utils/numbers.cjs", - "/tests/features/bundle-false/basic/dist/cjs/utils/strings.cjs", + "/tests/integration/bundle-false/basic/dist/cjs/index.cjs", + "/tests/integration/bundle-false/basic/dist/cjs/sum.cjs", + "/tests/integration/bundle-false/basic/dist/cjs/utils/numbers.cjs", + "/tests/integration/bundle-false/basic/dist/cjs/utils/strings.cjs", ] `); }); @@ -30,12 +30,12 @@ test('single file', async () => { expect(files.esm).toMatchInlineSnapshot(` [ - "/tests/features/bundle-false/single-file/dist/esm/index.js", + "/tests/integration/bundle-false/single-file/dist/esm/index.js", ] `); expect(files.cjs).toMatchInlineSnapshot(` [ - "/tests/features/bundle-false/single-file/dist/cjs/index.cjs", + "/tests/integration/bundle-false/single-file/dist/cjs/index.cjs", ] `); }); diff --git a/tests/features/bundle-false/js-extension/package.json b/tests/integration/bundle-false/js-extension/package.json similarity index 100% rename from tests/features/bundle-false/js-extension/package.json rename to tests/integration/bundle-false/js-extension/package.json diff --git a/tests/features/bundle-false/js-extension/rslib.config.ts b/tests/integration/bundle-false/js-extension/rslib.config.ts similarity index 100% rename from tests/features/bundle-false/js-extension/rslib.config.ts rename to tests/integration/bundle-false/js-extension/rslib.config.ts diff --git a/tests/features/bundle-false/js-extension/src/bar.ts b/tests/integration/bundle-false/js-extension/src/bar.ts similarity index 100% rename from tests/features/bundle-false/js-extension/src/bar.ts rename to tests/integration/bundle-false/js-extension/src/bar.ts diff --git a/tests/features/bundle-false/js-extension/src/baz.js.ts b/tests/integration/bundle-false/js-extension/src/baz.js.ts similarity index 100% rename from tests/features/bundle-false/js-extension/src/baz.js.ts rename to tests/integration/bundle-false/js-extension/src/baz.js.ts diff --git a/tests/features/bundle-false/js-extension/src/foo.js b/tests/integration/bundle-false/js-extension/src/foo.js similarity index 100% rename from tests/features/bundle-false/js-extension/src/foo.js rename to tests/integration/bundle-false/js-extension/src/foo.js diff --git a/tests/features/bundle-false/js-extension/src/index.js b/tests/integration/bundle-false/js-extension/src/index.js similarity index 100% rename from tests/features/bundle-false/js-extension/src/index.js rename to tests/integration/bundle-false/js-extension/src/index.js diff --git a/tests/features/bundle-false/js-extension/src/qux.cjs b/tests/integration/bundle-false/js-extension/src/qux.cjs similarity index 100% rename from tests/features/bundle-false/js-extension/src/qux.cjs rename to tests/integration/bundle-false/js-extension/src/qux.cjs diff --git a/tests/features/bundle-false/js-extension/tsconfig.json b/tests/integration/bundle-false/js-extension/tsconfig.json similarity index 100% rename from tests/features/bundle-false/js-extension/tsconfig.json rename to tests/integration/bundle-false/js-extension/tsconfig.json diff --git a/tests/features/bundle-false/single-file/package.json b/tests/integration/bundle-false/single-file/package.json similarity index 100% rename from tests/features/bundle-false/single-file/package.json rename to tests/integration/bundle-false/single-file/package.json diff --git a/tests/features/bundle-false/single-file/rslib.config.ts b/tests/integration/bundle-false/single-file/rslib.config.ts similarity index 100% rename from tests/features/bundle-false/single-file/rslib.config.ts rename to tests/integration/bundle-false/single-file/rslib.config.ts diff --git a/tests/features/bundle-false/single-file/src/index.ts b/tests/integration/bundle-false/single-file/src/index.ts similarity index 100% rename from tests/features/bundle-false/single-file/src/index.ts rename to tests/integration/bundle-false/single-file/src/index.ts diff --git a/tests/features/bundle-false/single-file/tsconfig.json b/tests/integration/bundle-false/single-file/tsconfig.json similarity index 100% rename from tests/features/bundle-false/single-file/tsconfig.json rename to tests/integration/bundle-false/single-file/tsconfig.json diff --git a/tests/features/bundle-false/svgr/package.json b/tests/integration/bundle-false/svgr/package.json similarity index 100% rename from tests/features/bundle-false/svgr/package.json rename to tests/integration/bundle-false/svgr/package.json diff --git a/tests/features/bundle-false/svgr/rslib.config.ts b/tests/integration/bundle-false/svgr/rslib.config.ts similarity index 100% rename from tests/features/bundle-false/svgr/rslib.config.ts rename to tests/integration/bundle-false/svgr/rslib.config.ts diff --git a/tests/features/bundle-false/svgr/src/index.jsx b/tests/integration/bundle-false/svgr/src/index.jsx similarity index 100% rename from tests/features/bundle-false/svgr/src/index.jsx rename to tests/integration/bundle-false/svgr/src/index.jsx diff --git a/tests/features/cli/index.test.ts b/tests/integration/cli/index.test.ts similarity index 100% rename from tests/features/cli/index.test.ts rename to tests/integration/cli/index.test.ts diff --git a/tests/features/cli/package.json b/tests/integration/cli/package.json similarity index 100% rename from tests/features/cli/package.json rename to tests/integration/cli/package.json diff --git a/tests/features/cli/rslib.config.ts b/tests/integration/cli/rslib.config.ts similarity index 100% rename from tests/features/cli/rslib.config.ts rename to tests/integration/cli/rslib.config.ts diff --git a/tests/integration/copy/index.test.ts b/tests/integration/copy/index.test.ts new file mode 100644 index 000000000..0ac14864d --- /dev/null +++ b/tests/integration/copy/index.test.ts @@ -0,0 +1,34 @@ +import { join } from 'node:path'; +import { buildAndGetResults, generateFileTree } from 'test-helper'; +import { expect, test } from 'vitest'; + +test('copy', async () => { + const fixturePath = __dirname; + await buildAndGetResults(fixturePath); + + const fileTree = generateFileTree(join(fixturePath, './dist/esm')); + expect(fileTree).toMatchInlineSnapshot(` + { + "index.js": "/tests/integration/copy/dist/esm/index.js", + "temp-1": { + "b.png": "/tests/integration/copy/dist/esm/temp-1/b.png", + }, + "temp-2": { + "a.png": "/tests/integration/copy/dist/esm/temp-2/a.png", + }, + "temp-3": { + "a.png": "/tests/integration/copy/dist/esm/temp-3/a.png", + "b.txt": "/tests/integration/copy/dist/esm/temp-3/b.txt", + }, + "temp-4": { + "_index.html": "/tests/integration/copy/dist/esm/temp-4/_index.html", + }, + "temp-5": { + "index.html": "/tests/integration/copy/dist/esm/temp-5/index.html", + }, + "temp-6": { + "index.html": "/tests/integration/copy/dist/esm/temp-6/index.html", + }, + } + `); +}); diff --git a/tests/features/copy/package.json b/tests/integration/copy/package.json similarity index 100% rename from tests/features/copy/package.json rename to tests/integration/copy/package.json diff --git a/tests/features/copy/rslib.config.ts b/tests/integration/copy/rslib.config.ts similarity index 100% rename from tests/features/copy/rslib.config.ts rename to tests/integration/copy/rslib.config.ts diff --git a/tests/features/copy/src/index.html b/tests/integration/copy/src/index.html similarity index 100% rename from tests/features/copy/src/index.html rename to tests/integration/copy/src/index.html diff --git a/tests/features/copy/src/index.ts b/tests/integration/copy/src/index.ts similarity index 100% rename from tests/features/copy/src/index.ts rename to tests/integration/copy/src/index.ts diff --git a/tests/features/copy/src/test.txt b/tests/integration/copy/src/test.txt similarity index 100% rename from tests/features/copy/src/test.txt rename to tests/integration/copy/src/test.txt diff --git a/tests/features/copy/temp-1/a.png b/tests/integration/copy/temp-1/a.png similarity index 100% rename from tests/features/copy/temp-1/a.png rename to tests/integration/copy/temp-1/a.png diff --git a/tests/features/copy/temp-2/a.png b/tests/integration/copy/temp-2/a.png similarity index 100% rename from tests/features/copy/temp-2/a.png rename to tests/integration/copy/temp-2/a.png diff --git a/tests/features/copy/temp-3/a.png b/tests/integration/copy/temp-3/a.png similarity index 100% rename from tests/features/copy/temp-3/a.png rename to tests/integration/copy/temp-3/a.png diff --git a/tests/features/copy/temp-3/b.txt b/tests/integration/copy/temp-3/b.txt similarity index 100% rename from tests/features/copy/temp-3/b.txt rename to tests/integration/copy/temp-3/b.txt diff --git a/tests/features/copy/temp-4/index.html b/tests/integration/copy/temp-4/index.html similarity index 100% rename from tests/features/copy/temp-4/index.html rename to tests/integration/copy/temp-4/index.html diff --git a/tests/features/decorators/__fixtures__/src/index.ts b/tests/integration/decorators/__fixtures__/src/index.ts similarity index 100% rename from tests/features/decorators/__fixtures__/src/index.ts rename to tests/integration/decorators/__fixtures__/src/index.ts diff --git a/tests/features/decorators/__fixtures__/tsconfig.decorators.json b/tests/integration/decorators/__fixtures__/tsconfig.decorators.json similarity index 100% rename from tests/features/decorators/__fixtures__/tsconfig.decorators.json rename to tests/integration/decorators/__fixtures__/tsconfig.decorators.json diff --git a/tests/features/decorators/__fixtures__/tsconfig.json b/tests/integration/decorators/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/decorators/__fixtures__/tsconfig.json rename to tests/integration/decorators/__fixtures__/tsconfig.json diff --git a/tests/features/decorators/__snapshots__/index.test.ts.snap b/tests/integration/decorators/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/decorators/__snapshots__/index.test.ts.snap rename to tests/integration/decorators/__snapshots__/index.test.ts.snap diff --git a/tests/features/decorators/default/package.json b/tests/integration/decorators/default/package.json similarity index 100% rename from tests/features/decorators/default/package.json rename to tests/integration/decorators/default/package.json diff --git a/tests/features/decorators/default/rslib.config.ts b/tests/integration/decorators/default/rslib.config.ts similarity index 100% rename from tests/features/decorators/default/rslib.config.ts rename to tests/integration/decorators/default/rslib.config.ts diff --git a/tests/features/decorators/index.test.ts b/tests/integration/decorators/index.test.ts similarity index 100% rename from tests/features/decorators/index.test.ts rename to tests/integration/decorators/index.test.ts diff --git a/tests/features/decorators/tsconfig/package.json b/tests/integration/decorators/tsconfig/package.json similarity index 100% rename from tests/features/decorators/tsconfig/package.json rename to tests/integration/decorators/tsconfig/package.json diff --git a/tests/features/decorators/tsconfig/rslib.config.ts b/tests/integration/decorators/tsconfig/rslib.config.ts similarity index 100% rename from tests/features/decorators/tsconfig/rslib.config.ts rename to tests/integration/decorators/tsconfig/rslib.config.ts diff --git a/tests/features/define/index.test.ts b/tests/integration/define/index.test.ts similarity index 100% rename from tests/features/define/index.test.ts rename to tests/integration/define/index.test.ts diff --git a/tests/features/define/package.json b/tests/integration/define/package.json similarity index 100% rename from tests/features/define/package.json rename to tests/integration/define/package.json diff --git a/tests/features/define/rslib.config.ts b/tests/integration/define/rslib.config.ts similarity index 100% rename from tests/features/define/rslib.config.ts rename to tests/integration/define/rslib.config.ts diff --git a/tests/features/define/src/env.d.ts b/tests/integration/define/src/env.d.ts similarity index 100% rename from tests/features/define/src/env.d.ts rename to tests/integration/define/src/env.d.ts diff --git a/tests/features/define/src/index.ts b/tests/integration/define/src/index.ts similarity index 100% rename from tests/features/define/src/index.ts rename to tests/integration/define/src/index.ts diff --git a/tests/features/dts/__snapshots__/index.test.ts.snap b/tests/integration/dts/__snapshots__/index.test.ts.snap similarity index 61% rename from tests/features/dts/__snapshots__/index.test.ts.snap rename to tests/integration/dts/__snapshots__/index.test.ts.snap index bf2332dee..b84143ea7 100644 --- a/tests/features/dts/__snapshots__/index.test.ts.snap +++ b/tests/integration/dts/__snapshots__/index.test.ts.snap @@ -2,18 +2,18 @@ exports[`dts when bundle: false > basic 2`] = ` { - "/tests/features/dts/bundle-false/basic/dist/esm/index.d.ts": "export * from './utils/numbers'; + "/tests/integration/dts/bundle-false/basic/dist/esm/index.d.ts": "export * from './utils/numbers'; export * from './utils/strings'; export * from './sum'; ", - "/tests/features/dts/bundle-false/basic/dist/esm/sum.d.ts": "export declare const numSum: number; + "/tests/integration/dts/bundle-false/basic/dist/esm/sum.d.ts": "export declare const numSum: number; export declare const strSum: string; ", - "/tests/features/dts/bundle-false/basic/dist/esm/utils/numbers.d.ts": "export declare const num1 = 1; + "/tests/integration/dts/bundle-false/basic/dist/esm/utils/numbers.d.ts": "export declare const num1 = 1; export declare const num2 = 2; export declare const num3 = 3; ", - "/tests/features/dts/bundle-false/basic/dist/esm/utils/strings.d.ts": "export declare const str1 = "str1"; + "/tests/integration/dts/bundle-false/basic/dist/esm/utils/strings.d.ts": "export declare const str1 = "str1"; export declare const str2 = "str2"; export declare const str3 = "str3"; ", diff --git a/tests/features/dts/bundle-false/__fixtures__/src/index.ts b/tests/integration/dts/bundle-false/__fixtures__/src/index.ts similarity index 100% rename from tests/features/dts/bundle-false/__fixtures__/src/index.ts rename to tests/integration/dts/bundle-false/__fixtures__/src/index.ts diff --git a/tests/features/dts/bundle-false/__fixtures__/src/sum.ts b/tests/integration/dts/bundle-false/__fixtures__/src/sum.ts similarity index 100% rename from tests/features/dts/bundle-false/__fixtures__/src/sum.ts rename to tests/integration/dts/bundle-false/__fixtures__/src/sum.ts diff --git a/tests/features/dts/bundle-false/__fixtures__/src/utils/numbers.ts b/tests/integration/dts/bundle-false/__fixtures__/src/utils/numbers.ts similarity index 100% rename from tests/features/dts/bundle-false/__fixtures__/src/utils/numbers.ts rename to tests/integration/dts/bundle-false/__fixtures__/src/utils/numbers.ts diff --git a/tests/features/dts/bundle-false/__fixtures__/src/utils/strings.ts b/tests/integration/dts/bundle-false/__fixtures__/src/utils/strings.ts similarity index 100% rename from tests/features/dts/bundle-false/__fixtures__/src/utils/strings.ts rename to tests/integration/dts/bundle-false/__fixtures__/src/utils/strings.ts diff --git a/tests/features/dts/bundle-false/__fixtures__/tsconfig.json b/tests/integration/dts/bundle-false/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/dts/bundle-false/__fixtures__/tsconfig.json rename to tests/integration/dts/bundle-false/__fixtures__/tsconfig.json diff --git a/tests/features/dts/bundle-false/abort-on-error/package.json b/tests/integration/dts/bundle-false/abort-on-error/package.json similarity index 100% rename from tests/features/dts/bundle-false/abort-on-error/package.json rename to tests/integration/dts/bundle-false/abort-on-error/package.json diff --git a/tests/features/dts/bundle-false/abort-on-error/rslib.config.ts b/tests/integration/dts/bundle-false/abort-on-error/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle-false/abort-on-error/rslib.config.ts rename to tests/integration/dts/bundle-false/abort-on-error/rslib.config.ts diff --git a/tests/features/dts/bundle-false/abort-on-error/src/const.ts b/tests/integration/dts/bundle-false/abort-on-error/src/const.ts similarity index 100% rename from tests/features/dts/bundle-false/abort-on-error/src/const.ts rename to tests/integration/dts/bundle-false/abort-on-error/src/const.ts diff --git a/tests/features/dts/bundle-false/abort-on-error/src/index.ts b/tests/integration/dts/bundle-false/abort-on-error/src/index.ts similarity index 100% rename from tests/features/dts/bundle-false/abort-on-error/src/index.ts rename to tests/integration/dts/bundle-false/abort-on-error/src/index.ts diff --git a/tests/features/dts/bundle-false/abort-on-error/tsconfig.json b/tests/integration/dts/bundle-false/abort-on-error/tsconfig.json similarity index 100% rename from tests/features/dts/bundle-false/abort-on-error/tsconfig.json rename to tests/integration/dts/bundle-false/abort-on-error/tsconfig.json diff --git a/tests/features/dts/bundle-false/auto-extension/package.json b/tests/integration/dts/bundle-false/auto-extension/package.json similarity index 100% rename from tests/features/dts/bundle-false/auto-extension/package.json rename to tests/integration/dts/bundle-false/auto-extension/package.json diff --git a/tests/features/dts/bundle-false/auto-extension/rslib.config.ts b/tests/integration/dts/bundle-false/auto-extension/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle-false/auto-extension/rslib.config.ts rename to tests/integration/dts/bundle-false/auto-extension/rslib.config.ts diff --git a/tests/features/dts/bundle-false/basic/package.json b/tests/integration/dts/bundle-false/basic/package.json similarity index 100% rename from tests/features/dts/bundle-false/basic/package.json rename to tests/integration/dts/bundle-false/basic/package.json diff --git a/tests/features/dts/bundle-false/basic/rslib.config.ts b/tests/integration/dts/bundle-false/basic/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle-false/basic/rslib.config.ts rename to tests/integration/dts/bundle-false/basic/rslib.config.ts diff --git a/tests/features/dts/bundle-false/dist-path/package.json b/tests/integration/dts/bundle-false/dist-path/package.json similarity index 100% rename from tests/features/dts/bundle-false/dist-path/package.json rename to tests/integration/dts/bundle-false/dist-path/package.json diff --git a/tests/features/dts/bundle-false/dist-path/rslib.config.ts b/tests/integration/dts/bundle-false/dist-path/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle-false/dist-path/rslib.config.ts rename to tests/integration/dts/bundle-false/dist-path/rslib.config.ts diff --git a/tests/features/dts/bundle-false/false/package.json b/tests/integration/dts/bundle-false/false/package.json similarity index 100% rename from tests/features/dts/bundle-false/false/package.json rename to tests/integration/dts/bundle-false/false/package.json diff --git a/tests/features/dts/bundle-false/false/rslib.config.ts b/tests/integration/dts/bundle-false/false/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle-false/false/rslib.config.ts rename to tests/integration/dts/bundle-false/false/rslib.config.ts diff --git a/tests/features/dts/bundle/__fixtures__/src/index.ts b/tests/integration/dts/bundle/__fixtures__/src/index.ts similarity index 100% rename from tests/features/dts/bundle/__fixtures__/src/index.ts rename to tests/integration/dts/bundle/__fixtures__/src/index.ts diff --git a/tests/features/dts/bundle/__fixtures__/src/sum.ts b/tests/integration/dts/bundle/__fixtures__/src/sum.ts similarity index 100% rename from tests/features/dts/bundle/__fixtures__/src/sum.ts rename to tests/integration/dts/bundle/__fixtures__/src/sum.ts diff --git a/tests/features/dts/bundle/__fixtures__/src/utils/numbers.ts b/tests/integration/dts/bundle/__fixtures__/src/utils/numbers.ts similarity index 100% rename from tests/features/dts/bundle/__fixtures__/src/utils/numbers.ts rename to tests/integration/dts/bundle/__fixtures__/src/utils/numbers.ts diff --git a/tests/features/dts/bundle/__fixtures__/src/utils/strings.ts b/tests/integration/dts/bundle/__fixtures__/src/utils/strings.ts similarity index 100% rename from tests/features/dts/bundle/__fixtures__/src/utils/strings.ts rename to tests/integration/dts/bundle/__fixtures__/src/utils/strings.ts diff --git a/tests/features/dts/bundle/__fixtures__/tsconfig.json b/tests/integration/dts/bundle/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/dts/bundle/__fixtures__/tsconfig.json rename to tests/integration/dts/bundle/__fixtures__/tsconfig.json diff --git a/tests/features/dts/bundle/abort-on-error/package.json b/tests/integration/dts/bundle/abort-on-error/package.json similarity index 100% rename from tests/features/dts/bundle/abort-on-error/package.json rename to tests/integration/dts/bundle/abort-on-error/package.json diff --git a/tests/features/dts/bundle/abort-on-error/rslib.config.ts b/tests/integration/dts/bundle/abort-on-error/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/abort-on-error/rslib.config.ts rename to tests/integration/dts/bundle/abort-on-error/rslib.config.ts diff --git a/tests/features/dts/bundle/abort-on-error/src/const.ts b/tests/integration/dts/bundle/abort-on-error/src/const.ts similarity index 100% rename from tests/features/dts/bundle/abort-on-error/src/const.ts rename to tests/integration/dts/bundle/abort-on-error/src/const.ts diff --git a/tests/features/dts/bundle/abort-on-error/src/index.ts b/tests/integration/dts/bundle/abort-on-error/src/index.ts similarity index 100% rename from tests/features/dts/bundle/abort-on-error/src/index.ts rename to tests/integration/dts/bundle/abort-on-error/src/index.ts diff --git a/tests/features/dts/bundle/abort-on-error/tsconfig.json b/tests/integration/dts/bundle/abort-on-error/tsconfig.json similarity index 100% rename from tests/features/dts/bundle/abort-on-error/tsconfig.json rename to tests/integration/dts/bundle/abort-on-error/tsconfig.json diff --git a/tests/features/dts/bundle/absolute-entry/package.json b/tests/integration/dts/bundle/absolute-entry/package.json similarity index 100% rename from tests/features/dts/bundle/absolute-entry/package.json rename to tests/integration/dts/bundle/absolute-entry/package.json diff --git a/tests/features/dts/bundle/absolute-entry/rslib.config.ts b/tests/integration/dts/bundle/absolute-entry/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/absolute-entry/rslib.config.ts rename to tests/integration/dts/bundle/absolute-entry/rslib.config.ts diff --git a/tests/features/dts/bundle/auto-extension/package.json b/tests/integration/dts/bundle/auto-extension/package.json similarity index 100% rename from tests/features/dts/bundle/auto-extension/package.json rename to tests/integration/dts/bundle/auto-extension/package.json diff --git a/tests/features/dts/bundle/auto-extension/rslib.config.ts b/tests/integration/dts/bundle/auto-extension/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/auto-extension/rslib.config.ts rename to tests/integration/dts/bundle/auto-extension/rslib.config.ts diff --git a/tests/features/dts/bundle/basic/package.json b/tests/integration/dts/bundle/basic/package.json similarity index 100% rename from tests/features/dts/bundle/basic/package.json rename to tests/integration/dts/bundle/basic/package.json diff --git a/tests/features/dts/bundle/basic/rslib.config.ts b/tests/integration/dts/bundle/basic/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/basic/rslib.config.ts rename to tests/integration/dts/bundle/basic/rslib.config.ts diff --git a/tests/features/dts/bundle/bundle-name/package.json b/tests/integration/dts/bundle/bundle-name/package.json similarity index 100% rename from tests/features/dts/bundle/bundle-name/package.json rename to tests/integration/dts/bundle/bundle-name/package.json diff --git a/tests/features/dts/bundle/bundle-name/rslib.config.ts b/tests/integration/dts/bundle/bundle-name/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/bundle-name/rslib.config.ts rename to tests/integration/dts/bundle/bundle-name/rslib.config.ts diff --git a/tests/features/dts/bundle/dist-path/package.json b/tests/integration/dts/bundle/dist-path/package.json similarity index 100% rename from tests/features/dts/bundle/dist-path/package.json rename to tests/integration/dts/bundle/dist-path/package.json diff --git a/tests/features/dts/bundle/dist-path/rslib.config.ts b/tests/integration/dts/bundle/dist-path/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/dist-path/rslib.config.ts rename to tests/integration/dts/bundle/dist-path/rslib.config.ts diff --git a/tests/features/dts/bundle/false/package.json b/tests/integration/dts/bundle/false/package.json similarity index 100% rename from tests/features/dts/bundle/false/package.json rename to tests/integration/dts/bundle/false/package.json diff --git a/tests/features/dts/bundle/false/rslib.config.ts b/tests/integration/dts/bundle/false/rslib.config.ts similarity index 100% rename from tests/features/dts/bundle/false/rslib.config.ts rename to tests/integration/dts/bundle/false/rslib.config.ts diff --git a/tests/features/dts/index.test.ts b/tests/integration/dts/index.test.ts similarity index 69% rename from tests/features/dts/index.test.ts rename to tests/integration/dts/index.test.ts index 0f69b90be..53c198291 100644 --- a/tests/features/dts/index.test.ts +++ b/tests/integration/dts/index.test.ts @@ -9,10 +9,10 @@ describe('dts when bundle: false', () => { expect(files.esm).toMatchInlineSnapshot(` [ - "/tests/features/dts/bundle-false/basic/dist/esm/index.d.ts", - "/tests/features/dts/bundle-false/basic/dist/esm/sum.d.ts", - "/tests/features/dts/bundle-false/basic/dist/esm/utils/numbers.d.ts", - "/tests/features/dts/bundle-false/basic/dist/esm/utils/strings.d.ts", + "/tests/integration/dts/bundle-false/basic/dist/esm/index.d.ts", + "/tests/integration/dts/bundle-false/basic/dist/esm/sum.d.ts", + "/tests/integration/dts/bundle-false/basic/dist/esm/utils/numbers.d.ts", + "/tests/integration/dts/bundle-false/basic/dist/esm/utils/strings.d.ts", ] `); expect(contents.esm).toMatchSnapshot(); @@ -31,10 +31,10 @@ describe('dts when bundle: false', () => { expect(files.esm).toMatchInlineSnapshot(` [ - "/tests/features/dts/bundle-false/dist-path/dist/custom/index.d.ts", - "/tests/features/dts/bundle-false/dist-path/dist/custom/sum.d.ts", - "/tests/features/dts/bundle-false/dist-path/dist/custom/utils/numbers.d.ts", - "/tests/features/dts/bundle-false/dist-path/dist/custom/utils/strings.d.ts", + "/tests/integration/dts/bundle-false/dist-path/dist/custom/index.d.ts", + "/tests/integration/dts/bundle-false/dist-path/dist/custom/sum.d.ts", + "/tests/integration/dts/bundle-false/dist-path/dist/custom/utils/numbers.d.ts", + "/tests/integration/dts/bundle-false/dist-path/dist/custom/utils/strings.d.ts", ] `); }); @@ -52,10 +52,10 @@ describe('dts when bundle: false', () => { expect(files.cjs).toMatchInlineSnapshot(` [ - "/tests/features/dts/bundle-false/auto-extension/dist/cjs/index.d.cts", - "/tests/features/dts/bundle-false/auto-extension/dist/cjs/sum.d.cts", - "/tests/features/dts/bundle-false/auto-extension/dist/cjs/utils/numbers.d.cts", - "/tests/features/dts/bundle-false/auto-extension/dist/cjs/utils/strings.d.cts", + "/tests/integration/dts/bundle-false/auto-extension/dist/cjs/index.d.cts", + "/tests/integration/dts/bundle-false/auto-extension/dist/cjs/sum.d.cts", + "/tests/integration/dts/bundle-false/auto-extension/dist/cjs/utils/numbers.d.cts", + "/tests/integration/dts/bundle-false/auto-extension/dist/cjs/utils/strings.d.cts", ] `); }); @@ -70,7 +70,7 @@ describe('dts when bundle: true', () => { ); expect(entryFiles.esm).toMatchInlineSnapshot( - `"/tests/features/dts/bundle/basic/dist/esm/index.d.ts"`, + `"/tests/integration/dts/bundle/basic/dist/esm/index.d.ts"`, ); expect(entries).toMatchSnapshot(); }); @@ -87,7 +87,7 @@ describe('dts when bundle: true', () => { const { entryFiles } = await buildAndGetResults(fixturePath, 'dts'); expect(entryFiles.esm).toMatchInlineSnapshot( - `"/tests/features/dts/bundle/dist-path/dist/custom/index.d.ts"`, + `"/tests/integration/dts/bundle/dist-path/dist/custom/index.d.ts"`, ); }); @@ -103,7 +103,7 @@ describe('dts when bundle: true', () => { const { entryFiles } = await buildAndGetResults(fixturePath, 'dts'); expect(entryFiles.cjs).toMatchInlineSnapshot( - `"/tests/features/dts/bundle/auto-extension/dist/cjs/index.d.cts"`, + `"/tests/integration/dts/bundle/auto-extension/dist/cjs/index.d.cts"`, ); }); @@ -112,7 +112,7 @@ describe('dts when bundle: true', () => { const { entryFiles } = await buildAndGetResults(fixturePath, 'dts'); expect(entryFiles.esm).toMatchInlineSnapshot( - `"/tests/features/dts/bundle/bundle-name/dist/esm/bundleName.d.ts"`, + `"/tests/integration/dts/bundle/bundle-name/dist/esm/bundleName.d.ts"`, ); }); @@ -121,7 +121,7 @@ describe('dts when bundle: true', () => { const { entryFiles } = await buildAndGetResults(fixturePath, 'dts'); expect(entryFiles.esm).toMatchInlineSnapshot( - `"/tests/features/dts/bundle/absolute-entry/dist/esm/index.d.ts"`, + `"/tests/integration/dts/bundle/absolute-entry/dist/esm/index.d.ts"`, ); }); }); diff --git a/tests/features/entry/glob/package.json b/tests/integration/entry/glob/package.json similarity index 100% rename from tests/features/entry/glob/package.json rename to tests/integration/entry/glob/package.json diff --git a/tests/features/entry/glob/rslib.config.ts b/tests/integration/entry/glob/rslib.config.ts similarity index 100% rename from tests/features/entry/glob/rslib.config.ts rename to tests/integration/entry/glob/rslib.config.ts diff --git a/tests/features/entry/glob/src/bar.ts b/tests/integration/entry/glob/src/bar.ts similarity index 100% rename from tests/features/entry/glob/src/bar.ts rename to tests/integration/entry/glob/src/bar.ts diff --git a/tests/features/entry/glob/src/foo.ts b/tests/integration/entry/glob/src/foo.ts similarity index 100% rename from tests/features/entry/glob/src/foo.ts rename to tests/integration/entry/glob/src/foo.ts diff --git a/tests/features/entry/glob/src/ignore/baz.ignore.ts b/tests/integration/entry/glob/src/ignore/baz.ignore.ts similarity index 100% rename from tests/features/entry/glob/src/ignore/baz.ignore.ts rename to tests/integration/entry/glob/src/ignore/baz.ignore.ts diff --git a/tests/features/entry/glob/src/index.ignore.ts b/tests/integration/entry/glob/src/index.ignore.ts similarity index 100% rename from tests/features/entry/glob/src/index.ignore.ts rename to tests/integration/entry/glob/src/index.ignore.ts diff --git a/tests/features/entry/glob/src/index.ts b/tests/integration/entry/glob/src/index.ts similarity index 100% rename from tests/features/entry/glob/src/index.ts rename to tests/integration/entry/glob/src/index.ts diff --git a/tests/features/entry/index.test.ts b/tests/integration/entry/index.test.ts similarity index 53% rename from tests/features/entry/index.test.ts rename to tests/integration/entry/index.test.ts index a9c09e586..433606785 100644 --- a/tests/features/entry/index.test.ts +++ b/tests/integration/entry/index.test.ts @@ -9,10 +9,10 @@ test('single entry bundle', async () => { expect(files).toMatchInlineSnapshot(` { "cjs": [ - "/tests/features/entry/single/dist/cjs/index.cjs", + "/tests/integration/entry/single/dist/cjs/index.cjs", ], "esm": [ - "/tests/features/entry/single/dist/esm/index.js", + "/tests/integration/entry/single/dist/esm/index.js", ], } `); @@ -25,12 +25,12 @@ test('multiple entry bundle', async () => { expect(files).toMatchInlineSnapshot(` { "cjs": [ - "/tests/features/entry/multiple/dist/cjs/bar.cjs", - "/tests/features/entry/multiple/dist/cjs/index.cjs", + "/tests/integration/entry/multiple/dist/cjs/bar.cjs", + "/tests/integration/entry/multiple/dist/cjs/index.cjs", ], "esm": [ - "/tests/features/entry/multiple/dist/esm/bar.js", - "/tests/features/entry/multiple/dist/esm/index.js", + "/tests/integration/entry/multiple/dist/esm/bar.js", + "/tests/integration/entry/multiple/dist/esm/index.js", ], } `); @@ -43,14 +43,14 @@ test('glob entry bundleless', async () => { expect(files).toMatchInlineSnapshot(` { "cjs": [ - "/tests/features/entry/glob/dist/cjs/bar.cjs", - "/tests/features/entry/glob/dist/cjs/foo.cjs", - "/tests/features/entry/glob/dist/cjs/index.cjs", + "/tests/integration/entry/glob/dist/cjs/bar.cjs", + "/tests/integration/entry/glob/dist/cjs/foo.cjs", + "/tests/integration/entry/glob/dist/cjs/index.cjs", ], "esm": [ - "/tests/features/entry/glob/dist/esm/bar.js", - "/tests/features/entry/glob/dist/esm/foo.js", - "/tests/features/entry/glob/dist/esm/index.js", + "/tests/integration/entry/glob/dist/esm/bar.js", + "/tests/integration/entry/glob/dist/esm/foo.js", + "/tests/integration/entry/glob/dist/esm/index.js", ], } `); diff --git a/tests/features/entry/multiple/package.json b/tests/integration/entry/multiple/package.json similarity index 100% rename from tests/features/entry/multiple/package.json rename to tests/integration/entry/multiple/package.json diff --git a/tests/features/entry/multiple/rslib.config.ts b/tests/integration/entry/multiple/rslib.config.ts similarity index 100% rename from tests/features/entry/multiple/rslib.config.ts rename to tests/integration/entry/multiple/rslib.config.ts diff --git a/tests/features/entry/multiple/src/bar.ts b/tests/integration/entry/multiple/src/bar.ts similarity index 100% rename from tests/features/entry/multiple/src/bar.ts rename to tests/integration/entry/multiple/src/bar.ts diff --git a/tests/features/entry/multiple/src/foo.ts b/tests/integration/entry/multiple/src/foo.ts similarity index 100% rename from tests/features/entry/multiple/src/foo.ts rename to tests/integration/entry/multiple/src/foo.ts diff --git a/tests/features/entry/multiple/src/index.ts b/tests/integration/entry/multiple/src/index.ts similarity index 100% rename from tests/features/entry/multiple/src/index.ts rename to tests/integration/entry/multiple/src/index.ts diff --git a/tests/features/entry/single/package.json b/tests/integration/entry/single/package.json similarity index 100% rename from tests/features/entry/single/package.json rename to tests/integration/entry/single/package.json diff --git a/tests/features/entry/single/rslib.config.ts b/tests/integration/entry/single/rslib.config.ts similarity index 100% rename from tests/features/entry/single/rslib.config.ts rename to tests/integration/entry/single/rslib.config.ts diff --git a/tests/features/entry/single/src/foo.ts b/tests/integration/entry/single/src/foo.ts similarity index 100% rename from tests/features/entry/single/src/foo.ts rename to tests/integration/entry/single/src/foo.ts diff --git a/tests/features/entry/single/src/index.ts b/tests/integration/entry/single/src/index.ts similarity index 100% rename from tests/features/entry/single/src/index.ts rename to tests/integration/entry/single/src/index.ts diff --git a/tests/features/extension-alias/__snapshots__/index.test.ts.snap b/tests/integration/extension-alias/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/extension-alias/__snapshots__/index.test.ts.snap rename to tests/integration/extension-alias/__snapshots__/index.test.ts.snap diff --git a/tests/features/extension-alias/index.test.ts b/tests/integration/extension-alias/index.test.ts similarity index 100% rename from tests/features/extension-alias/index.test.ts rename to tests/integration/extension-alias/index.test.ts diff --git a/tests/features/extension-alias/package.json b/tests/integration/extension-alias/package.json similarity index 100% rename from tests/features/extension-alias/package.json rename to tests/integration/extension-alias/package.json diff --git a/tests/features/extension-alias/rslib.config.ts b/tests/integration/extension-alias/rslib.config.ts similarity index 100% rename from tests/features/extension-alias/rslib.config.ts rename to tests/integration/extension-alias/rslib.config.ts diff --git a/tests/features/extension-alias/src/bar.js b/tests/integration/extension-alias/src/bar.js similarity index 100% rename from tests/features/extension-alias/src/bar.js rename to tests/integration/extension-alias/src/bar.js diff --git a/tests/features/extension-alias/src/foo.ts b/tests/integration/extension-alias/src/foo.ts similarity index 100% rename from tests/features/extension-alias/src/foo.ts rename to tests/integration/extension-alias/src/foo.ts diff --git a/tests/features/extension-alias/src/index.ts b/tests/integration/extension-alias/src/index.ts similarity index 100% rename from tests/features/extension-alias/src/index.ts rename to tests/integration/extension-alias/src/index.ts diff --git a/tests/features/extension-alias/tsconfig.json b/tests/integration/extension-alias/tsconfig.json similarity index 100% rename from tests/features/extension-alias/tsconfig.json rename to tests/integration/extension-alias/tsconfig.json diff --git a/tests/features/external-helpers/__fixtures__/src/index.ts b/tests/integration/external-helpers/__fixtures__/src/index.ts similarity index 100% rename from tests/features/external-helpers/__fixtures__/src/index.ts rename to tests/integration/external-helpers/__fixtures__/src/index.ts diff --git a/tests/features/external-helpers/__fixtures__/tsconfig.json b/tests/integration/external-helpers/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/external-helpers/__fixtures__/tsconfig.json rename to tests/integration/external-helpers/__fixtures__/tsconfig.json diff --git a/tests/features/external-helpers/__snapshots__/index.test.ts.snap b/tests/integration/external-helpers/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/external-helpers/__snapshots__/index.test.ts.snap rename to tests/integration/external-helpers/__snapshots__/index.test.ts.snap diff --git a/tests/features/external-helpers/config-override/package.json b/tests/integration/external-helpers/config-override/package.json similarity index 100% rename from tests/features/external-helpers/config-override/package.json rename to tests/integration/external-helpers/config-override/package.json diff --git a/tests/features/external-helpers/config-override/rslib.config.ts b/tests/integration/external-helpers/config-override/rslib.config.ts similarity index 100% rename from tests/features/external-helpers/config-override/rslib.config.ts rename to tests/integration/external-helpers/config-override/rslib.config.ts diff --git a/tests/features/external-helpers/default/package.json b/tests/integration/external-helpers/default/package.json similarity index 100% rename from tests/features/external-helpers/default/package.json rename to tests/integration/external-helpers/default/package.json diff --git a/tests/features/external-helpers/default/rslib.config.ts b/tests/integration/external-helpers/default/rslib.config.ts similarity index 100% rename from tests/features/external-helpers/default/rslib.config.ts rename to tests/integration/external-helpers/default/rslib.config.ts diff --git a/tests/features/external-helpers/index.test.ts b/tests/integration/external-helpers/index.test.ts similarity index 100% rename from tests/features/external-helpers/index.test.ts rename to tests/integration/external-helpers/index.test.ts diff --git a/tests/features/external-helpers/no-deps/package.json b/tests/integration/external-helpers/no-deps/package.json similarity index 100% rename from tests/features/external-helpers/no-deps/package.json rename to tests/integration/external-helpers/no-deps/package.json diff --git a/tests/features/external-helpers/no-deps/rslib.config.ts b/tests/integration/external-helpers/no-deps/rslib.config.ts similarity index 100% rename from tests/features/external-helpers/no-deps/rslib.config.ts rename to tests/integration/external-helpers/no-deps/rslib.config.ts diff --git a/tests/features/external-helpers/true/package.json b/tests/integration/external-helpers/true/package.json similarity index 100% rename from tests/features/external-helpers/true/package.json rename to tests/integration/external-helpers/true/package.json diff --git a/tests/features/external-helpers/true/rslib.config.ts b/tests/integration/external-helpers/true/rslib.config.ts similarity index 100% rename from tests/features/external-helpers/true/rslib.config.ts rename to tests/integration/external-helpers/true/rslib.config.ts diff --git a/tests/features/externals/browser/package.json b/tests/integration/externals/browser/package.json similarity index 100% rename from tests/features/externals/browser/package.json rename to tests/integration/externals/browser/package.json diff --git a/tests/features/externals/browser/rslib.config.ts b/tests/integration/externals/browser/rslib.config.ts similarity index 100% rename from tests/features/externals/browser/rslib.config.ts rename to tests/integration/externals/browser/rslib.config.ts diff --git a/tests/features/externals/browser/src/index.ts b/tests/integration/externals/browser/src/index.ts similarity index 100% rename from tests/features/externals/browser/src/index.ts rename to tests/integration/externals/browser/src/index.ts diff --git a/tests/features/externals/index.test.ts b/tests/integration/externals/index.test.ts similarity index 100% rename from tests/features/externals/index.test.ts rename to tests/integration/externals/index.test.ts diff --git a/tests/features/externals/module-import-warn/package.json b/tests/integration/externals/module-import-warn/package.json similarity index 100% rename from tests/features/externals/module-import-warn/package.json rename to tests/integration/externals/module-import-warn/package.json diff --git a/tests/features/externals/module-import-warn/rslib.config.ts b/tests/integration/externals/module-import-warn/rslib.config.ts similarity index 100% rename from tests/features/externals/module-import-warn/rslib.config.ts rename to tests/integration/externals/module-import-warn/rslib.config.ts diff --git a/tests/features/externals/module-import-warn/src/baz.ts b/tests/integration/externals/module-import-warn/src/baz.ts similarity index 100% rename from tests/features/externals/module-import-warn/src/baz.ts rename to tests/integration/externals/module-import-warn/src/baz.ts diff --git a/tests/features/externals/module-import-warn/src/index.ts b/tests/integration/externals/module-import-warn/src/index.ts similarity index 100% rename from tests/features/externals/module-import-warn/src/index.ts rename to tests/integration/externals/module-import-warn/src/index.ts diff --git a/tests/features/externals/node/package.json b/tests/integration/externals/node/package.json similarity index 100% rename from tests/features/externals/node/package.json rename to tests/integration/externals/node/package.json diff --git a/tests/features/externals/node/rslib.config.ts b/tests/integration/externals/node/rslib.config.ts similarity index 100% rename from tests/features/externals/node/rslib.config.ts rename to tests/integration/externals/node/rslib.config.ts diff --git a/tests/features/externals/node/src/index.ts b/tests/integration/externals/node/src/index.ts similarity index 100% rename from tests/features/externals/node/src/index.ts rename to tests/integration/externals/node/src/index.ts diff --git a/tests/features/minify/config/package.json b/tests/integration/minify/config/package.json similarity index 100% rename from tests/features/minify/config/package.json rename to tests/integration/minify/config/package.json diff --git a/tests/features/minify/config/rslib.config.ts b/tests/integration/minify/config/rslib.config.ts similarity index 100% rename from tests/features/minify/config/rslib.config.ts rename to tests/integration/minify/config/rslib.config.ts diff --git a/tests/features/minify/config/src/index.ts b/tests/integration/minify/config/src/index.ts similarity index 100% rename from tests/features/minify/config/src/index.ts rename to tests/integration/minify/config/src/index.ts diff --git a/tests/features/minify/default/package.json b/tests/integration/minify/default/package.json similarity index 100% rename from tests/features/minify/default/package.json rename to tests/integration/minify/default/package.json diff --git a/tests/features/minify/default/rslib.config.ts b/tests/integration/minify/default/rslib.config.ts similarity index 100% rename from tests/features/minify/default/rslib.config.ts rename to tests/integration/minify/default/rslib.config.ts diff --git a/tests/features/minify/default/src/index.ts b/tests/integration/minify/default/src/index.ts similarity index 100% rename from tests/features/minify/default/src/index.ts rename to tests/integration/minify/default/src/index.ts diff --git a/tests/features/minify/index.test.ts b/tests/integration/minify/index.test.ts similarity index 100% rename from tests/features/minify/index.test.ts rename to tests/integration/minify/index.test.ts diff --git a/tests/features/resolve/data-url/index.ts b/tests/integration/resolve/data-url/index.ts similarity index 100% rename from tests/features/resolve/data-url/index.ts rename to tests/integration/resolve/data-url/index.ts diff --git a/tests/features/resolve/data-url/package.json b/tests/integration/resolve/data-url/package.json similarity index 100% rename from tests/features/resolve/data-url/package.json rename to tests/integration/resolve/data-url/package.json diff --git a/tests/features/resolve/data-url/rslib.config.ts b/tests/integration/resolve/data-url/rslib.config.ts similarity index 100% rename from tests/features/resolve/data-url/rslib.config.ts rename to tests/integration/resolve/data-url/rslib.config.ts diff --git a/tests/features/resolve/false/bar.ts b/tests/integration/resolve/false/bar.ts similarity index 100% rename from tests/features/resolve/false/bar.ts rename to tests/integration/resolve/false/bar.ts diff --git a/tests/features/resolve/false/browser-false/package.json b/tests/integration/resolve/false/browser-false/package.json similarity index 100% rename from tests/features/resolve/false/browser-false/package.json rename to tests/integration/resolve/false/browser-false/package.json diff --git a/tests/features/resolve/false/index.ts b/tests/integration/resolve/false/index.ts similarity index 100% rename from tests/features/resolve/false/index.ts rename to tests/integration/resolve/false/index.ts diff --git a/tests/features/resolve/false/package.json b/tests/integration/resolve/false/package.json similarity index 100% rename from tests/features/resolve/false/package.json rename to tests/integration/resolve/false/package.json diff --git a/tests/features/resolve/false/rslib.config.ts b/tests/integration/resolve/false/rslib.config.ts similarity index 100% rename from tests/features/resolve/false/rslib.config.ts rename to tests/integration/resolve/false/rslib.config.ts diff --git a/tests/features/resolve/index.test.ts b/tests/integration/resolve/index.test.ts similarity index 100% rename from tests/features/resolve/index.test.ts rename to tests/integration/resolve/index.test.ts diff --git a/tests/features/resolve/node-protocol/index.ts b/tests/integration/resolve/node-protocol/index.ts similarity index 100% rename from tests/features/resolve/node-protocol/index.ts rename to tests/integration/resolve/node-protocol/index.ts diff --git a/tests/features/resolve/node-protocol/package.json b/tests/integration/resolve/node-protocol/package.json similarity index 100% rename from tests/features/resolve/node-protocol/package.json rename to tests/integration/resolve/node-protocol/package.json diff --git a/tests/features/resolve/node-protocol/rslib.config.ts b/tests/integration/resolve/node-protocol/rslib.config.ts similarity index 100% rename from tests/features/resolve/node-protocol/rslib.config.ts rename to tests/integration/resolve/node-protocol/rslib.config.ts diff --git a/tests/features/resolve/with-condition-exports/.gitignore b/tests/integration/resolve/with-condition-exports/.gitignore similarity index 100% rename from tests/features/resolve/with-condition-exports/.gitignore rename to tests/integration/resolve/with-condition-exports/.gitignore diff --git a/tests/features/resolve/with-condition-exports/entry1.ts b/tests/integration/resolve/with-condition-exports/entry1.ts similarity index 100% rename from tests/features/resolve/with-condition-exports/entry1.ts rename to tests/integration/resolve/with-condition-exports/entry1.ts diff --git a/tests/features/resolve/with-condition-exports/entry2.ts b/tests/integration/resolve/with-condition-exports/entry2.ts similarity index 100% rename from tests/features/resolve/with-condition-exports/entry2.ts rename to tests/integration/resolve/with-condition-exports/entry2.ts diff --git a/tests/features/resolve/with-condition-exports/entry3.ts b/tests/integration/resolve/with-condition-exports/entry3.ts similarity index 100% rename from tests/features/resolve/with-condition-exports/entry3.ts rename to tests/integration/resolve/with-condition-exports/entry3.ts diff --git a/tests/features/resolve/with-condition-exports/entry4.ts b/tests/integration/resolve/with-condition-exports/entry4.ts similarity index 100% rename from tests/features/resolve/with-condition-exports/entry4.ts rename to tests/integration/resolve/with-condition-exports/entry4.ts diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib1/package.json b/tests/integration/resolve/with-condition-exports/node_modules/lib1/package.json similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib1/package.json rename to tests/integration/resolve/with-condition-exports/node_modules/lib1/package.json diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib1/src/index.cjs b/tests/integration/resolve/with-condition-exports/node_modules/lib1/src/index.cjs similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib1/src/index.cjs rename to tests/integration/resolve/with-condition-exports/node_modules/lib1/src/index.cjs diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib1/src/index.mjs b/tests/integration/resolve/with-condition-exports/node_modules/lib1/src/index.mjs similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib1/src/index.mjs rename to tests/integration/resolve/with-condition-exports/node_modules/lib1/src/index.mjs diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib2/package.json b/tests/integration/resolve/with-condition-exports/node_modules/lib2/package.json similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib2/package.json rename to tests/integration/resolve/with-condition-exports/node_modules/lib2/package.json diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib2/src/index.cjs b/tests/integration/resolve/with-condition-exports/node_modules/lib2/src/index.cjs similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib2/src/index.cjs rename to tests/integration/resolve/with-condition-exports/node_modules/lib2/src/index.cjs diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib2/src/index.mjs b/tests/integration/resolve/with-condition-exports/node_modules/lib2/src/index.mjs similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib2/src/index.mjs rename to tests/integration/resolve/with-condition-exports/node_modules/lib2/src/index.mjs diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib2/src/module.js b/tests/integration/resolve/with-condition-exports/node_modules/lib2/src/module.js similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib2/src/module.js rename to tests/integration/resolve/with-condition-exports/node_modules/lib2/src/module.js diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib3/package.json b/tests/integration/resolve/with-condition-exports/node_modules/lib3/package.json similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib3/package.json rename to tests/integration/resolve/with-condition-exports/node_modules/lib3/package.json diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib3/src/browser.js b/tests/integration/resolve/with-condition-exports/node_modules/lib3/src/browser.js similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib3/src/browser.js rename to tests/integration/resolve/with-condition-exports/node_modules/lib3/src/browser.js diff --git a/tests/features/resolve/with-condition-exports/node_modules/lib3/src/node.js b/tests/integration/resolve/with-condition-exports/node_modules/lib3/src/node.js similarity index 100% rename from tests/features/resolve/with-condition-exports/node_modules/lib3/src/node.js rename to tests/integration/resolve/with-condition-exports/node_modules/lib3/src/node.js diff --git a/tests/features/resolve/with-condition-exports/package.json b/tests/integration/resolve/with-condition-exports/package.json similarity index 100% rename from tests/features/resolve/with-condition-exports/package.json rename to tests/integration/resolve/with-condition-exports/package.json diff --git a/tests/features/resolve/with-condition-exports/rslib.config.ts b/tests/integration/resolve/with-condition-exports/rslib.config.ts similarity index 100% rename from tests/features/resolve/with-condition-exports/rslib.config.ts rename to tests/integration/resolve/with-condition-exports/rslib.config.ts diff --git a/tests/features/resolve/with-js-extensions/example.mts b/tests/integration/resolve/with-js-extensions/example.mts similarity index 100% rename from tests/features/resolve/with-js-extensions/example.mts rename to tests/integration/resolve/with-js-extensions/example.mts diff --git a/tests/features/resolve/with-js-extensions/index.ts b/tests/integration/resolve/with-js-extensions/index.ts similarity index 100% rename from tests/features/resolve/with-js-extensions/index.ts rename to tests/integration/resolve/with-js-extensions/index.ts diff --git a/tests/features/resolve/with-js-extensions/package.json b/tests/integration/resolve/with-js-extensions/package.json similarity index 100% rename from tests/features/resolve/with-js-extensions/package.json rename to tests/integration/resolve/with-js-extensions/package.json diff --git a/tests/features/resolve/with-js-extensions/rslib.config.ts b/tests/integration/resolve/with-js-extensions/rslib.config.ts similarity index 100% rename from tests/features/resolve/with-js-extensions/rslib.config.ts rename to tests/integration/resolve/with-js-extensions/rslib.config.ts diff --git a/tests/features/resolve/with-main-fields/.gitignore b/tests/integration/resolve/with-main-fields/.gitignore similarity index 100% rename from tests/features/resolve/with-main-fields/.gitignore rename to tests/integration/resolve/with-main-fields/.gitignore diff --git a/tests/features/resolve/with-main-fields/entry1.ts b/tests/integration/resolve/with-main-fields/entry1.ts similarity index 100% rename from tests/features/resolve/with-main-fields/entry1.ts rename to tests/integration/resolve/with-main-fields/entry1.ts diff --git a/tests/features/resolve/with-main-fields/entry2.ts b/tests/integration/resolve/with-main-fields/entry2.ts similarity index 100% rename from tests/features/resolve/with-main-fields/entry2.ts rename to tests/integration/resolve/with-main-fields/entry2.ts diff --git a/tests/features/resolve/with-main-fields/node_modules/lib1/package.json b/tests/integration/resolve/with-main-fields/node_modules/lib1/package.json similarity index 100% rename from tests/features/resolve/with-main-fields/node_modules/lib1/package.json rename to tests/integration/resolve/with-main-fields/node_modules/lib1/package.json diff --git a/tests/features/resolve/with-main-fields/node_modules/lib1/src/index.ts b/tests/integration/resolve/with-main-fields/node_modules/lib1/src/index.ts similarity index 100% rename from tests/features/resolve/with-main-fields/node_modules/lib1/src/index.ts rename to tests/integration/resolve/with-main-fields/node_modules/lib1/src/index.ts diff --git a/tests/features/resolve/with-main-fields/node_modules/lib2/package.json b/tests/integration/resolve/with-main-fields/node_modules/lib2/package.json similarity index 100% rename from tests/features/resolve/with-main-fields/node_modules/lib2/package.json rename to tests/integration/resolve/with-main-fields/node_modules/lib2/package.json diff --git a/tests/features/resolve/with-main-fields/node_modules/lib2/src/browser.ts b/tests/integration/resolve/with-main-fields/node_modules/lib2/src/browser.ts similarity index 100% rename from tests/features/resolve/with-main-fields/node_modules/lib2/src/browser.ts rename to tests/integration/resolve/with-main-fields/node_modules/lib2/src/browser.ts diff --git a/tests/features/resolve/with-main-fields/node_modules/lib2/src/main.ts b/tests/integration/resolve/with-main-fields/node_modules/lib2/src/main.ts similarity index 100% rename from tests/features/resolve/with-main-fields/node_modules/lib2/src/main.ts rename to tests/integration/resolve/with-main-fields/node_modules/lib2/src/main.ts diff --git a/tests/features/resolve/with-main-fields/package.json b/tests/integration/resolve/with-main-fields/package.json similarity index 100% rename from tests/features/resolve/with-main-fields/package.json rename to tests/integration/resolve/with-main-fields/package.json diff --git a/tests/features/resolve/with-main-fields/rslib.config.ts b/tests/integration/resolve/with-main-fields/rslib.config.ts similarity index 100% rename from tests/features/resolve/with-main-fields/rslib.config.ts rename to tests/integration/resolve/with-main-fields/rslib.config.ts diff --git a/tests/features/shims/cjs/package.json b/tests/integration/shims/cjs/package.json similarity index 100% rename from tests/features/shims/cjs/package.json rename to tests/integration/shims/cjs/package.json diff --git a/tests/features/shims/cjs/rslib.config.ts b/tests/integration/shims/cjs/rslib.config.ts similarity index 100% rename from tests/features/shims/cjs/rslib.config.ts rename to tests/integration/shims/cjs/rslib.config.ts diff --git a/tests/features/shims/cjs/src/index.ts b/tests/integration/shims/cjs/src/index.ts similarity index 100% rename from tests/features/shims/cjs/src/index.ts rename to tests/integration/shims/cjs/src/index.ts diff --git a/tests/features/shims/esm/package.json b/tests/integration/shims/esm/package.json similarity index 100% rename from tests/features/shims/esm/package.json rename to tests/integration/shims/esm/package.json diff --git a/tests/features/shims/esm/rslib.config.ts b/tests/integration/shims/esm/rslib.config.ts similarity index 100% rename from tests/features/shims/esm/rslib.config.ts rename to tests/integration/shims/esm/rslib.config.ts diff --git a/tests/features/shims/esm/src/index.ts b/tests/integration/shims/esm/src/index.ts similarity index 100% rename from tests/features/shims/esm/src/index.ts rename to tests/integration/shims/esm/src/index.ts diff --git a/tests/features/shims/index.test.ts b/tests/integration/shims/index.test.ts similarity index 100% rename from tests/features/shims/index.test.ts rename to tests/integration/shims/index.test.ts diff --git a/tests/features/sourcemap/__fixtures__/src/index.ts b/tests/integration/sourcemap/__fixtures__/src/index.ts similarity index 100% rename from tests/features/sourcemap/__fixtures__/src/index.ts rename to tests/integration/sourcemap/__fixtures__/src/index.ts diff --git a/tests/features/sourcemap/__fixtures__/tsconfig.json b/tests/integration/sourcemap/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/sourcemap/__fixtures__/tsconfig.json rename to tests/integration/sourcemap/__fixtures__/tsconfig.json diff --git a/tests/features/sourcemap/default/package.json b/tests/integration/sourcemap/default/package.json similarity index 100% rename from tests/features/sourcemap/default/package.json rename to tests/integration/sourcemap/default/package.json diff --git a/tests/features/sourcemap/default/rslib.config.ts b/tests/integration/sourcemap/default/rslib.config.ts similarity index 100% rename from tests/features/sourcemap/default/rslib.config.ts rename to tests/integration/sourcemap/default/rslib.config.ts diff --git a/tests/features/sourcemap/external/package.json b/tests/integration/sourcemap/external/package.json similarity index 100% rename from tests/features/sourcemap/external/package.json rename to tests/integration/sourcemap/external/package.json diff --git a/tests/features/sourcemap/external/rslib.config.ts b/tests/integration/sourcemap/external/rslib.config.ts similarity index 100% rename from tests/features/sourcemap/external/rslib.config.ts rename to tests/integration/sourcemap/external/rslib.config.ts diff --git a/tests/features/sourcemap/index.test.ts b/tests/integration/sourcemap/index.test.ts similarity index 80% rename from tests/features/sourcemap/index.test.ts rename to tests/integration/sourcemap/index.test.ts index b70c8244a..1d9cb92d5 100644 --- a/tests/features/sourcemap/index.test.ts +++ b/tests/integration/sourcemap/index.test.ts @@ -10,7 +10,7 @@ test('should not generate js sourcemap by default', async () => { expect(files).toMatchInlineSnapshot(` [ - "/tests/features/sourcemap/default/dist/esm/index.js", + "/tests/integration/sourcemap/default/dist/esm/index.js", ] `); }); @@ -22,8 +22,8 @@ test('should generate js external sourcemap: cheap-module-source-map', async () expect(files).toMatchInlineSnapshot(` [ - "/tests/features/sourcemap/external/dist/esm/index.js", - "/tests/features/sourcemap/external/dist/esm/index.js.map", + "/tests/integration/sourcemap/external/dist/esm/index.js", + "/tests/integration/sourcemap/external/dist/esm/index.js.map", ] `); }); @@ -36,7 +36,7 @@ test('should generate js inline sourcemap: inline-cheap-module-source-map', asyn expect(files).toMatchInlineSnapshot(` [ - "/tests/features/sourcemap/inline/dist/esm/index.js", + "/tests/integration/sourcemap/inline/dist/esm/index.js", ] `); diff --git a/tests/features/sourcemap/inline/package.json b/tests/integration/sourcemap/inline/package.json similarity index 100% rename from tests/features/sourcemap/inline/package.json rename to tests/integration/sourcemap/inline/package.json diff --git a/tests/features/sourcemap/inline/rslib.config.ts b/tests/integration/sourcemap/inline/rslib.config.ts similarity index 100% rename from tests/features/sourcemap/inline/rslib.config.ts rename to tests/integration/sourcemap/inline/rslib.config.ts diff --git a/tests/features/syntax/__fixtures__/src/foo.ts b/tests/integration/syntax/__fixtures__/src/foo.ts similarity index 100% rename from tests/features/syntax/__fixtures__/src/foo.ts rename to tests/integration/syntax/__fixtures__/src/foo.ts diff --git a/tests/features/syntax/__fixtures__/src/index.ts b/tests/integration/syntax/__fixtures__/src/index.ts similarity index 100% rename from tests/features/syntax/__fixtures__/src/index.ts rename to tests/integration/syntax/__fixtures__/src/index.ts diff --git a/tests/features/syntax/__fixtures__/tsconfig.json b/tests/integration/syntax/__fixtures__/tsconfig.json similarity index 100% rename from tests/features/syntax/__fixtures__/tsconfig.json rename to tests/integration/syntax/__fixtures__/tsconfig.json diff --git a/tests/features/syntax/__snapshots__/index.test.ts.snap b/tests/integration/syntax/__snapshots__/index.test.ts.snap similarity index 100% rename from tests/features/syntax/__snapshots__/index.test.ts.snap rename to tests/integration/syntax/__snapshots__/index.test.ts.snap diff --git a/tests/features/syntax/config/package.json b/tests/integration/syntax/config/package.json similarity index 100% rename from tests/features/syntax/config/package.json rename to tests/integration/syntax/config/package.json diff --git a/tests/features/syntax/config/rslib.config.ts b/tests/integration/syntax/config/rslib.config.ts similarity index 100% rename from tests/features/syntax/config/rslib.config.ts rename to tests/integration/syntax/config/rslib.config.ts diff --git a/tests/features/syntax/default/package.json b/tests/integration/syntax/default/package.json similarity index 100% rename from tests/features/syntax/default/package.json rename to tests/integration/syntax/default/package.json diff --git a/tests/features/syntax/default/rslib.config.ts b/tests/integration/syntax/default/rslib.config.ts similarity index 100% rename from tests/features/syntax/default/rslib.config.ts rename to tests/integration/syntax/default/rslib.config.ts diff --git a/tests/features/syntax/index.test.ts b/tests/integration/syntax/index.test.ts similarity index 100% rename from tests/features/syntax/index.test.ts rename to tests/integration/syntax/index.test.ts diff --git a/tests/features/transform-import/arco-design/package.json b/tests/integration/transform-import/arco-design/package.json similarity index 100% rename from tests/features/transform-import/arco-design/package.json rename to tests/integration/transform-import/arco-design/package.json diff --git a/tests/features/transform-import/arco-design/rslib.config.ts b/tests/integration/transform-import/arco-design/rslib.config.ts similarity index 100% rename from tests/features/transform-import/arco-design/rslib.config.ts rename to tests/integration/transform-import/arco-design/rslib.config.ts diff --git a/tests/features/transform-import/arco-design/src/index.ts b/tests/integration/transform-import/arco-design/src/index.ts similarity index 100% rename from tests/features/transform-import/arco-design/src/index.ts rename to tests/integration/transform-import/arco-design/src/index.ts diff --git a/tests/features/transform-import/arco-design/tsconfig.json b/tests/integration/transform-import/arco-design/tsconfig.json similarity index 100% rename from tests/features/transform-import/arco-design/tsconfig.json rename to tests/integration/transform-import/arco-design/tsconfig.json diff --git a/tests/features/transform-import/index.test.ts b/tests/integration/transform-import/index.test.ts similarity index 100% rename from tests/features/transform-import/index.test.ts rename to tests/integration/transform-import/index.test.ts diff --git a/tests/features/transform-import/lodash/package.json b/tests/integration/transform-import/lodash/package.json similarity index 100% rename from tests/features/transform-import/lodash/package.json rename to tests/integration/transform-import/lodash/package.json diff --git a/tests/features/transform-import/lodash/rslib.config.ts b/tests/integration/transform-import/lodash/rslib.config.ts similarity index 100% rename from tests/features/transform-import/lodash/rslib.config.ts rename to tests/integration/transform-import/lodash/rslib.config.ts diff --git a/tests/features/transform-import/lodash/src/index.ts b/tests/integration/transform-import/lodash/src/index.ts similarity index 100% rename from tests/features/transform-import/lodash/src/index.ts rename to tests/integration/transform-import/lodash/src/index.ts diff --git a/tests/features/transform-import/lodash/tsconfig.json b/tests/integration/transform-import/lodash/tsconfig.json similarity index 100% rename from tests/features/transform-import/lodash/tsconfig.json rename to tests/integration/transform-import/lodash/tsconfig.json diff --git a/tests/features/tsconfig/index.test.ts b/tests/integration/tsconfig/index.test.ts similarity index 100% rename from tests/features/tsconfig/index.test.ts rename to tests/integration/tsconfig/index.test.ts diff --git a/tests/features/tsconfig/package.json b/tests/integration/tsconfig/package.json similarity index 100% rename from tests/features/tsconfig/package.json rename to tests/integration/tsconfig/package.json diff --git a/tests/features/tsconfig/rslib.config.ts b/tests/integration/tsconfig/rslib.config.ts similarity index 100% rename from tests/features/tsconfig/rslib.config.ts rename to tests/integration/tsconfig/rslib.config.ts diff --git a/tests/features/tsconfig/src/foo.ts b/tests/integration/tsconfig/src/foo.ts similarity index 100% rename from tests/features/tsconfig/src/foo.ts rename to tests/integration/tsconfig/src/foo.ts diff --git a/tests/features/tsconfig/src/index.ts b/tests/integration/tsconfig/src/index.ts similarity index 100% rename from tests/features/tsconfig/src/index.ts rename to tests/integration/tsconfig/src/index.ts diff --git a/tests/features/tsconfig/tsconfig.custom.json b/tests/integration/tsconfig/tsconfig.custom.json similarity index 100% rename from tests/features/tsconfig/tsconfig.custom.json rename to tests/integration/tsconfig/tsconfig.custom.json diff --git a/tests/vitest.config.ts b/tests/vitest.config.ts index a6950a79a..a0cd3e263 100644 --- a/tests/vitest.config.ts +++ b/tests/vitest.config.ts @@ -4,9 +4,9 @@ import { shared } from '../vitest.workspace'; export default defineConfig({ test: { ...shared, - name: 'features', + name: 'integration', setupFiles: ['./setupVitestTests.ts'], - include: ['./features/**/*.test.ts'], + include: ['./integration/**/*.test.ts'], exclude: ['**/node_modules/**'], }, });