Skip to content

Commit

Permalink
chore(dependencies): Upgrade Jest, Fix Test Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Mar 26, 2022
1 parent 9651985 commit debdb0c
Show file tree
Hide file tree
Showing 9 changed files with 766 additions and 475 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Build @3yourmind/vue-use-tippy
run: yarn workspace @3yourmind/vue-use-tippy run build
- name: Run tests
run: yarn run test
run: yarn run check:jest
prettier:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ yarn run check:stylelint
### Testing

```bash
yarn run test
yarn run check:jest
```

### Publish
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.15.4",
"@babel/preset-typescript": "^7.15.0",
"@types/jest": "^27.0.1",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"@vue/eslint-config-typescript": "^5.0.2",
Expand All @@ -76,7 +76,7 @@
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-vue": "^6.1.2",
"husky": "^7.0.4",
"jest": "^27.1.0",
"jest": "^27.5.1",
"jsdom-global": "^3.0.2",
"lerna": "^4.0.0",
"lint-staged": "^11.0.1",
Expand All @@ -93,7 +93,7 @@
"stylelint-prettier": "^1.2.0",
"stylelint-scss": "^3.19.0",
"stylelint-selector-no-empty": "^1.0.8",
"ts-jest": "^27.0.5",
"ts-jest": "^27.1.4",
"unimported": "^1.19.1",
"vue": "^2.6.11",
"vue-jest": "^3.0.7",
Expand Down Expand Up @@ -131,6 +131,7 @@
"build:render.com": "yarn run watch:build-kotti-dependencies && yarn workspace @3yourmind/kotti-ui run build && yarn workspace @3yourmind/documentation run nuxt generate",
"check": "yarn run check:stylelint && yarn run check:eslint && yarn run check:prettier",
"check:eslint": "eslint --max-warnings=0 --ignore-path .gitignore '**/*.{js,jsx,json,ts,tsx,vue}'",
"check:jest": "jest",
"check:prettier": "prettier --check --ignore-path .gitignore .",
"check:stylelint": "stylelint packages/**/*.{css,scss,vue}",
"check:unimported": "lerna run check:unimported",
Expand All @@ -139,9 +140,8 @@
"fix:prettier": "prettier --write --ignore-path .gitignore .",
"fix:stylelint": "lerna run check:stylelint -- --fix",
"prepublishOnly": "yarn run check && lerna run --no-private build",
"test": "jest",
"watch:build-kotti-dependencies": "concurrently \"yarn workspace @3yourmind/sass-node-modules-importer run build\" \"yarn workspace @3yourmind/vue-use-tippy run build\" \"yarn workspace @3yourmind/yoco run build\"",
"watch": "yarn run watch:build-kotti-dependencies && nodemon --legacy-watch --watch packages/vue-use-tippy/source --watch packages/yoco/source --watch packages/sass-node-modules-importer/source --watch packages/kotti-ui/source --ignore packages/kotti-ui/source/kotti-style/tokens.css -e js,jsx,ts,tsx,vue,scss,css,json --exec \"yarn --cwd packages/kotti-ui run build && yarn --cwd packages/documentation run serve\""
"watch": "yarn run watch:build-kotti-dependencies && nodemon --legacy-watch --watch packages/vue-use-tippy/source --watch packages/yoco/source --watch packages/sass-node-modules-importer/source --watch packages/kotti-ui/source --ignore packages/kotti-ui/source/kotti-style/tokens.css -e js,jsx,ts,tsx,vue,scss,css,json --exec \"yarn --cwd packages/kotti-ui run build && yarn --cwd packages/documentation run serve\"",
"watch:build-kotti-dependencies": "concurrently \"yarn workspace @3yourmind/sass-node-modules-importer run build\" \"yarn workspace @3yourmind/vue-use-tippy run build\" \"yarn workspace @3yourmind/yoco run build\""
},
"version": "1.0.0",
"workspaces": [
Expand Down
1 change: 0 additions & 1 deletion packages/kotti-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-typescript": "^5.0.2",
"@types/big.js": "^6.1.3",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.180",
"@vue/test-utils": "^1.0.3",
"esm": "^3.2.25",
Expand Down
2 changes: 1 addition & 1 deletion packages/kotti-ui/source/kotti-field/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TestComponent = defineComponent({
name: 'TestComponent',
props: makeProps(
KottiField.propsSchema.extend({
value: z.string().nullable(),
value: z.string().nullable().default(null),
}),
),
setup: testFieldSetup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TestField = defineComponent<KottiField.PropsInternal>({
components: { KtField },
props: makeProps(
KottiField.propsSchema.extend({
value: z.string().nullable(),
value: z.string().nullable().default(null),
}),
),
setup: (props, { emit }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TestField = defineComponent<KottiField.PropsInternal>({
components: { KtField },
props: makeProps(
KottiField.propsSchema.extend({
value: z.string().nullable(),
value: z.string().nullable().default(null),
}),
),
setup: (props, { emit }) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/kotti-ui/source/kotti-form/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TestField = defineComponent<KottiField.PropsInternal>({
components: { KtField },
props: makeProps(
KottiField.propsSchema.extend({
value: z.string().nullable(),
value: z.string().nullable().default(null),
}),
),
setup: testFieldSetup,
Expand All @@ -56,7 +56,7 @@ const TestFieldObject = defineComponent<KottiField.PropsInternal>({
components: { KtField },
props: makeProps(
KottiField.propsSchema.extend({
value: z.record(z.unknown()).nullable(),
value: z.record(z.unknown()).nullable().default(null),
}),
),
setup: testFieldSetup,
Expand Down
Loading

0 comments on commit debdb0c

Please sign in to comment.