Skip to content

Commit

Permalink
test(internal/cli): migrate internal cli tests to vitest and remove j…
Browse files Browse the repository at this point in the history
…est (#7745)
  • Loading branch information
binoy14 authored Nov 6, 2024
1 parent 0005825 commit e5ec632
Show file tree
Hide file tree
Showing 39 changed files with 201 additions and 1,931 deletions.
77 changes: 0 additions & 77 deletions .github/workflows/jest.yml

This file was deleted.

17 changes: 0 additions & 17 deletions jest.config.mjs

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
"release:rc": "pnpm build && lerna publish --force-publish --dist-tag=dev-preview --preid=rc --exact",
"release:tag": "RELEASE_TAG=\"${RELEASE_TAG:-canary}\"; pnpm build && lerna publish --canary --force-publish --no-git-tag-version --dist-tag=$RELEASE_TAG --preid=$RELEASE_TAG --exact",
"start": "run-s dev",
"test": "run-s test:vitest test:jest",
"test:jest": "jest --forceExit",
"test": "run-s test:vitest",
"test:vitest": "vitest --run",
"test:vitest:watch": "vitest --watch",
"test:e2e": "playwright test",
Expand Down Expand Up @@ -153,7 +152,6 @@
"glob": "^7.2.0",
"globby": "^10.0.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"lerna": "^8.1.9",
"lint-staged": "^12.1.2",
Expand Down
153 changes: 0 additions & 153 deletions packages/@repo/test-config/jest/createJestConfig.mjs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/@repo/test-config/jest/index.mjs

This file was deleted.

12 changes: 0 additions & 12 deletions packages/@repo/test-config/jest/jsdom.jest.env.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/@repo/test-config/jest/readPackageName.mjs

This file was deleted.

5 changes: 0 additions & 5 deletions packages/@repo/test-config/jest/resolveDirName.mjs

This file was deleted.

29 changes: 0 additions & 29 deletions packages/@repo/test-config/jest/resolver.cjs

This file was deleted.

35 changes: 0 additions & 35 deletions packages/@repo/test-config/jest/setup.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/@repo/test-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,10 @@
"description": "Test (as in unit test) config shared across packages in the sanity monorepo",
"type": "module",
"exports": {
"./jest": "./jest/index.mjs",
"./vitest": "./vitest/index.mjs"
},
"devDependencies": {
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.26.0",
"@jest/globals": "^29.7.0",
"@repo/dev-aliases": "workspace:*",
"babel-plugin-transform-vite-meta-hot": "^1.0.0",
"dotenv": "^16.4.5",
"jest-environment-jsdom": "^29.7.0",
"lodash-es": "^4.17.21",
"vitest": "^2.1.1"
}
}
2 changes: 0 additions & 2 deletions packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@
"yargs": "^17.3.0"
},
"devDependencies": {
"@jest/expect": "^29.7.0",
"@jest/globals": "^29.7.0",
"@playwright/experimental-ct-react": "1.44.1",
"@playwright/test": "1.44.1",
"@repo/dev-aliases": "workspace:*",
Expand Down
Loading

0 comments on commit e5ec632

Please sign in to comment.