diff --git a/.circleci/config.yml b/.circleci/config.yml index a8f1a8b3..f0e08d5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -71,6 +71,8 @@ jobs: steps: - *workspace - run: npm run test:ci + - store_test_results: + path: test-results nodefetch3: <<: *nodelts diff --git a/.gitignore b/.gitignore index 4b70ef47..d9fccf42 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ coverage/ /packages/**/dist import-compat/ts-*.js +test-results diff --git a/package.json b/package.json index 59172fcb..3fba8e88 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "prepare": "husky || echo \"husky not available\"", "build": "npm run build -w=packages", "docs": "npm run start -w docs", - "test:ci": "vitest .", + "test:ci": "vitest . --reporter=junit --outputFile=test-results/junit.xml", "test:legacy": "vitest ./packages/fetch-mock/test/specs", "test": "vitest --ui .", "test:coverage": "vitest run --coverage ./packages/**/src/__tests__",