Skip to content

Commit 6f1ffbc

Browse files
committed
chore: update deps
1 parent 631527d commit 6f1ffbc

File tree

3 files changed

+11
-44
lines changed

3 files changed

+11
-44
lines changed

compatibility-scripts/vue-apollo-patch.js

-34
This file was deleted.

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"format": "kcd-scripts format",
99
"build": "kcd-scripts build",
1010
"lint": "kcd-scripts lint",
11-
"pretest": "node compatibility-scripts/vue-apollo-patch.js",
1211
"test": "kcd-scripts test",
1312
"test:update": "npm test -- --updateSnapshot --coverage",
1413
"validate": "kcd-scripts validate",
@@ -47,31 +46,31 @@
4746
"author": "Daniel Cook",
4847
"license": "MIT",
4948
"dependencies": {
50-
"@babel/runtime": "^7.14.6",
49+
"@babel/runtime": "^7.14.8",
5150
"@testing-library/dom": "^7.31.2",
52-
"@vue/test-utils": "^2.0.0-rc.0"
51+
"@vue/test-utils": "^2.0.0-rc.12"
5352
},
5453
"devDependencies": {
55-
"@apollo/client": "^3.3.20",
54+
"@apollo/client": "^3.3.21",
5655
"@babel/plugin-transform-runtime": "^7.14.5",
5756
"@testing-library/jest-dom": "^5.14.1",
5857
"@testing-library/user-event": "^13.1.8",
5958
"@types/estree": "0.0.48",
60-
"@vue/apollo-composable": "^4.0.0-alpha.12",
59+
"@vue/apollo-composable": "^4.0.0-alpha.14",
6160
"@vue/compiler-sfc": "^3.1.1",
6261
"apollo-boost": "^0.4.9",
6362
"axios": "^0.20.0",
6463
"dtslint": "^4.1.0",
65-
"element-plus": "^1.0.1-beta.27",
66-
"eslint-plugin-vue": "^7.11.1",
64+
"element-plus": "^1.0.2-beta.64",
65+
"eslint-plugin-vue": "^7.14.0",
6766
"graphql": "^15.5.0",
6867
"graphql-tag": "^2.12.4",
6968
"isomorphic-unfetch": "^3.1.0",
7069
"jest-serializer-vue": "^2.0.2",
7170
"kcd-scripts": "^10.0.0",
7271
"lodash.merge": "^4.6.2",
7372
"msw": "^0.21.3",
74-
"typescript": "^4.1.5",
73+
"typescript": "^4.3.5",
7574
"vee-validate": "^4.3.5",
7675
"vue": "^3.0.4",
7776
"vue-apollo": "^3.0.5",

src/__tests__/validate-plugin.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ test('can validate using plugin', async () => {
1313

1414
await fireEvent.touch(emailInput)
1515

16-
await findByText('This field is required')
16+
expect(await findByText('This field is required')).toBeInTheDocument()
1717

1818
await fireEvent.update(emailInput, 'an invalid email')
1919
await fireEvent.blur(emailInput)
2020

21-
await findByText('This field must be a valid email')
21+
expect(
22+
await findByText('This field must be a valid email'),
23+
).toBeInTheDocument()
2224
})

0 commit comments

Comments
 (0)