Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to vitest #143

Merged
merged 4 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ storybook-static
.DS_Store
.nyc_output
/docs/.vuepress/dist/
/packages/tailwind/COLORS.JSON

# Yarn
.pnp.*
Expand All @@ -65,3 +64,4 @@ storybook-static
!.yarn/sdks
!.yarn/versions

**/tsconfig.*.tsbuildinfo
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
staticDirs: ["../packages/tailwind/build"],
staticDirs: ["../packages/tailwind-formio/build"],

stories: [
"../stories/Getting-started.mdx",
Expand Down
1 change: 0 additions & 1 deletion commitlint.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ["@commitlint/config-conventional"] };
57 changes: 27 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@
},
"homepage": "https://github.com/TypedProject/tsed-formio",
"scripts": {
"postinstall": "lerna run build --stream",
"configure": "monorepo ci configure",
"test": "lerna run test --stream",
"test:coverage:update": "lerna run test:coverage:update --stream",
"lint": "eslint",
"lint:fix": "eslint",
"build": "monorepo build --verbose",
"publish": "monorepo publish --dry-run",
"start": "lerna run start --stream --parallel",
"tailwind:build": "lerna run tailwind:build --stream --scope @tsed/tailwind",
"tailwind:build": "lerna run build --stream --scope @tsed/tailwind-formio",
"release": "semantic-release",
"prepare": "is-ci || husky install",
"storybook:test": "yarn test-storybook",
"storybook:test:ci": "yarn test-storybook --maxWorkers=2",
"storybook:start": "storybook dev -p 6006",
"storybook:test": "yarn build && yarn test-storybook",
"storybook:test:ci": "yarn build && yarn test-storybook --maxWorkers=2",
"storybook:start": "yarn tailwind:build && storybook dev -p 6006",
"storybook:build": "yarn run tailwind:build && yarn run build-storybook",
"build-storybook": "storybook build -c .storybook",
"caniuse": "npx -y update-browserslist-db@latest",
Expand All @@ -47,10 +45,11 @@
"@types/react-router-dom": "^5.3.3",
"@types/react-table": "^7.7.14",
"connected-react-router": "6.9.1",
"formiojs": "^4.14.13",
"formiojs": "4.21.6",
"history": "5.3.0",
"lerna": "8.1.2",
"lodash": "4.17.21",
"nodemon": "3.1.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "7.2.6",
Expand All @@ -77,21 +76,22 @@
"@storybook/test-runner": "0.21.0",
"@swc/core": "^1.2.208",
"@swc/jest": "^0.2.21",
"@testing-library/dom": "^8.14.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.2.1",
"@tsed/monorepo-utils": "2.1.2",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2",
"@tsed/monorepo-utils": "2.3.10",
"@types/ejs": "^3.0.5",
"@types/jest": "27.0.2",
"@types/lodash": "4.14.168",
"@types/node": "^18.11.18",
"@types/node": "^20.14.8",
"@types/prop-types": "^15.7.5",
"@types/react-dnd": "3.0.2",
"@types/react-dnd-html5-backend": "3.0.2",
"@typescript-eslint/eslint-plugin": "8.18.2",
"@typescript-eslint/parser": "8.18.2",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "2.1.8",
"autoprefixer": "^10.4.7",
"camelcase": "6.3.0",
"chromatic": "11.20.2",
Expand All @@ -107,36 +107,33 @@
"eslint-plugin-testing-library": "7.1.1",
"eslint-plugin-workspaces": "0.10.1",
"fs-extra": "10.1.0",
"globby": "^14.0.2",
"husky": "^8.0.1",
"jest": "^28.1.2",
"jest-environment-jsdom": "^28.1.2",
"jest-watch-typeahead": "^1.1.0",
"jsdom": "25.0.1",
"lint-staged": "13.0.3",
"microbundle": "0.13.0",
"playwright": "1.49.1",
"postcss": "^8.4.14",
"postcss-flexbugs-fixes": "5.0.2",
"postcss-nested": "^5.0.6",
"postcss-normalize": "10.0.1",
"postcss-preset-env": "7.7.2",
"postcss-safe-parser": "6.0.0",
"postcss": "8.4.49",
"postcss-nested": "7.0.2",
"postcss-normalize": "13.0.1",
"prettier": "3.4.2",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-svg": "10.0.23",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "^3.0.2",
"rollup-preserve-directives": "^1.1.3",
"semantic-release": "23.0.5",
"semantic-release-slack-bot": "4.0.2",
"storybook": "^8.4.7",
"typescript": "4.9.5",
"vite": "5.1.8",
"typescript": "5.7.2",
"vite": "5.4.11",
"vite-plugin-dts": "4.4.0",
"vite-plugin-svgr": "^2.4.0",
"webpack": "4.44.2"
"vitest": "2.1.8"
},
"workspaces": {
"packages": [
"packages/*"
"packages/*",
"tools/*"
]
},
"monorepo": {
Expand Down
13 changes: 0 additions & 13 deletions packages/config/.eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/config/.eslintrc.js

This file was deleted.

10 changes: 0 additions & 10 deletions packages/config/.prettierrc

This file was deleted.

3 changes: 0 additions & 3 deletions packages/config/bin/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions packages/config/bin/write-coverage.js

This file was deleted.

40 changes: 0 additions & 40 deletions packages/config/eslint/node.js

This file was deleted.

10 changes: 0 additions & 10 deletions packages/config/eslint/web.js

This file was deleted.

12 changes: 0 additions & 12 deletions packages/config/jest/cssTransform.js

This file was deleted.

40 changes: 0 additions & 40 deletions packages/config/jest/fileTransform.js

This file was deleted.

26 changes: 0 additions & 26 deletions packages/config/jest/jest.node.config.js

This file was deleted.

35 changes: 0 additions & 35 deletions packages/config/jest/jest.web.config.js

This file was deleted.

29 changes: 0 additions & 29 deletions packages/config/jest/setupTest.js

This file was deleted.

Loading
Loading