Skip to content

Commit 4d4a8df

Browse files
committed
Update deps
1 parent 23cf837 commit 4d4a8df

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "kcd-scripts test",
1212
"test:update": "npm test -- --updateSnapshot --coverage",
1313
"validate": "kcd-scripts validate",
14-
"typecheck": "dtslint ./types/",
14+
"typecheck": "kcd-scripts typecheck --build types",
1515
"setup": "npm install && npm run validate -s"
1616
},
1717
"engines": {
@@ -43,32 +43,33 @@
4343
"author": "Daniel Cook",
4444
"license": "MIT",
4545
"dependencies": {
46-
"@babel/runtime": "^7.12.5",
46+
"@babel/runtime": "^7.21.0",
4747
"@testing-library/dom": "^9.0.0",
4848
"@vue/test-utils": "^1.3.0"
4949
},
5050
"devDependencies": {
51-
"@babel/plugin-transform-runtime": "^7.11.5",
52-
"@testing-library/jest-dom": "^5.11.6",
53-
"@testing-library/user-event": "^12.1.10",
54-
"@types/estree": "0.0.46",
55-
"@vue/vue2-jest": "^27.0.0-alpha.2",
51+
"@babel/plugin-transform-runtime": "^7.21.0",
52+
"@testing-library/jest-dom": "^5.16.5",
53+
"@testing-library/user-event": "^12",
54+
"@types/estree": "1.0.0",
55+
"@vue/vue2-jest": "^29.2.3",
5656
"apollo-boost": "^0.4.9",
5757
"apollo-cache-inmemory": "^1.6.6",
58-
"axios": "^0.21.1",
59-
"dtslint": "^4.0.5",
60-
"eslint": "^7.13.0",
61-
"eslint-plugin-vue": "^7.6.0",
58+
"axios": "^1.3.4",
59+
"dtslint": "^4.2.1",
60+
"eslint": "^8.35.0",
61+
"eslint-plugin-vue": "^9.9.0",
6262
"graphql": "^15.3.0",
63-
"graphql-tag": "^2.11.0",
64-
"isomorphic-unfetch": "^3.0.0",
65-
"jest-serializer-vue": "^2.0.2",
66-
"kcd-scripts": "^11.1.0",
63+
"graphql-tag": "^2.12.6",
64+
"isomorphic-unfetch": "^3.0.2",
65+
"jest-serializer-vue": "^3.1.0",
66+
"kcd-scripts": "^13.0.0",
6767
"lodash.merge": "^4.6.2",
68-
"msw": "^0.35.0",
68+
"msw": "^1.1",
6969
"portal-vue": "^2.1.7",
7070
"semver": "^7.3.5",
71-
"typescript": "^4.0.5",
71+
"tslint": "^6.1.3",
72+
"typescript": "^4.9",
7273
"vee-validate": "^2.2.15",
7374
"vue": "^2.6.12",
7475
"vue-apollo": "^3.0.4",

src/__tests__/fetch-axios-mock.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import {render, fireEvent} from '@testing-library/vue'
44
import Component from './components/Fetch.vue'
55

66
test('mocks an API call when load-greeting is clicked', async () => {
7-
axiosMock.get.mockImplementationOnce(() =>
8-
Promise.resolve({
9-
data: {greeting: 'hello there'},
10-
}),
11-
)
7+
axiosMock.get.mockResolvedValueOnce({
8+
data: {greeting: 'hello there'},
9+
})
1210

1311
const {html, getByText} = render(Component, {props: {url: '/greeting'}})
1412

src/__tests__/hello-world-debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable testing-library/no-debug */
1+
/* eslint-disable testing-library/no-debugging-utils */
22
import {render} from '@testing-library/vue'
33
import HelloWorld from './components/HelloWorld'
44

@@ -67,7 +67,7 @@ test('allows same arguments as prettyDOM', () => {
6767

6868
expect(console.log).toHaveBeenCalledTimes(1)
6969
expect(console.log.mock.calls[0]).toMatchInlineSnapshot(`
70-
Array [
70+
[
7171
<div>
7272
...,
7373
]

types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function testInstantiatedRouter() {
165165
eslint
166166
testing-library/prefer-explicit-assert: "off",
167167
testing-library/no-wait-for-empty-callback: "off",
168-
testing-library/no-debug: "off",
168+
testing-library/no-debugging-utils: "off",
169169
testing-library/prefer-screen-queries: "off",
170170
@typescript-eslint/unbound-method: "off",
171171
*/

0 commit comments

Comments
 (0)