From 244a2a299af822a6a27779a28d58a6293910c715 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Thu, 19 Sep 2024 10:04:32 +0100 Subject: [PATCH] test: avoid running codemod tests in browser --- package.json | 4 ++-- packages/jest/src/{__tests__ => __test__}/extensions.spec.js | 0 .../jest/src/{__tests__ => __test__}/reset-methods.spec.js | 0 .../vitest/src/{__tests__ => __test__}/extensions.spec.js | 0 .../vitest/src/{__tests__ => __test__}/reset-methods.spec.js | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename packages/jest/src/{__tests__ => __test__}/extensions.spec.js (100%) rename packages/jest/src/{__tests__ => __test__}/reset-methods.spec.js (100%) rename packages/vitest/src/{__tests__ => __test__}/extensions.spec.js (100%) rename packages/vitest/src/{__tests__ => __test__}/reset-methods.spec.js (100%) diff --git a/package.json b/package.json index bdb17b7f..e25b34a9 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "build": "npm run build -w=packages", "docs": "npm run start -w docs", "test": "vitest . --ui --exclude=packages/jest/src/__tests__/*", - "test:ci": "vitest . --reporter=junit --outputFile=test-results/junit.xml --coverage.provider=istanbul --exclude=packages/jest/src/__tests__/*", + "test:ci": "vitest . --reporter=junit --outputFile=test-results/junit.xml --coverage.provider=istanbul --exclude=packages/jest/src/__test__/*", "test:jest": "node --experimental-vm-modules node_modules/jest/bin/jest.js packages/jest", - "test:browser": "vitest . --browser.enabled --browser.name chromium --browser.provider playwright --exclude=packages/jest/src/__tests__/*", + "test:browser": "vitest . --browser.enabled --browser.name chromium --browser.provider playwright --exclude=packages/{jest,codemods}/src/__test__/*", "coverage:send": "cat ./coverage/lcov.info | coveralls", "compat:module": "npm run compat:module -w import-compat" }, diff --git a/packages/jest/src/__tests__/extensions.spec.js b/packages/jest/src/__test__/extensions.spec.js similarity index 100% rename from packages/jest/src/__tests__/extensions.spec.js rename to packages/jest/src/__test__/extensions.spec.js diff --git a/packages/jest/src/__tests__/reset-methods.spec.js b/packages/jest/src/__test__/reset-methods.spec.js similarity index 100% rename from packages/jest/src/__tests__/reset-methods.spec.js rename to packages/jest/src/__test__/reset-methods.spec.js diff --git a/packages/vitest/src/__tests__/extensions.spec.js b/packages/vitest/src/__test__/extensions.spec.js similarity index 100% rename from packages/vitest/src/__tests__/extensions.spec.js rename to packages/vitest/src/__test__/extensions.spec.js diff --git a/packages/vitest/src/__tests__/reset-methods.spec.js b/packages/vitest/src/__test__/reset-methods.spec.js similarity index 100% rename from packages/vitest/src/__tests__/reset-methods.spec.js rename to packages/vitest/src/__test__/reset-methods.spec.js