Skip to content

Commit 4b01d0f

Browse files
feat: update dependencies (#227)
* feat: update dependencies * chore: fix ESLint errors
1 parent c485fc0 commit 4b01d0f

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
"license": "MIT",
3333
"dependencies": {
3434
"@babel/cli": "^7.17.6",
35-
"@babel/core": "^7.17.5",
35+
"@babel/core": "^7.17.8",
3636
"@babel/plugin-proposal-class-properties": "^7.16.7",
37-
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
37+
"@babel/plugin-transform-modules-commonjs": "^7.17.7",
3838
"@babel/plugin-transform-runtime": "^7.17.0",
3939
"@babel/preset-env": "^7.16.11",
4040
"@babel/preset-react": "^7.16.7",
4141
"@babel/preset-typescript": "^7.16.7",
42-
"@babel/runtime": "^7.17.2",
42+
"@babel/runtime": "^7.17.8",
4343
"@rollup/plugin-babel": "^5.3.1",
44-
"@rollup/plugin-commonjs": "^21.0.2",
44+
"@rollup/plugin-commonjs": "^21.0.3",
4545
"@rollup/plugin-json": "^4.1.0",
4646
"@rollup/plugin-node-resolve": "^13.1.3",
4747
"@rollup/plugin-replace": "^4.0.0",
@@ -53,34 +53,34 @@
5353
"babel-plugin-module-resolver": "^4.1.0",
5454
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
5555
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
56-
"browserslist": "^4.19.3",
56+
"browserslist": "^4.20.2",
5757
"builtin-modules": "^3.2.0",
5858
"chalk": "^4.1.2",
59-
"concurrently": "^7.0.0",
59+
"concurrently": "^7.1.0",
6060
"cosmiconfig": "^7.0.1",
6161
"cpy": "^8.1.2",
6262
"cross-env": "^7.0.3",
6363
"cross-spawn": "^7.0.3",
6464
"doctoc": "^2.1.0",
65-
"eslint": "^8.10.0",
66-
"eslint-config-kentcdodds": "^20.0.1",
65+
"eslint": "^8.12.0",
66+
"eslint-config-kentcdodds": "^20.2.0",
6767
"glob": "^7.2.0",
6868
"husky": "^4.3.8",
6969
"is-ci": "^3.0.1",
7070
"jest": "^27.5.1",
7171
"jest-serializer-path": "^0.1.15",
7272
"jest-snapshot-serializer-raw": "^1.2.0",
7373
"jest-watch-typeahead": "^1.0.0",
74-
"lint-staged": "^12.3.5",
74+
"lint-staged": "^12.3.7",
7575
"lodash.camelcase": "^4.3.0",
7676
"lodash.has": "^4.5.2",
7777
"lodash.omit": "^4.5.0",
7878
"mkdirp": "^1.0.4",
79-
"prettier": "2.5.1",
79+
"prettier": "2.6.2",
8080
"read-pkg-up": "^7.0.1",
8181
"resolve": "^1.22.0",
8282
"rimraf": "^3.0.2",
83-
"rollup": "^2.69.1",
83+
"rollup": "^2.70.1",
8484
"rollup-plugin-node-builtins": "^2.1.2",
8585
"rollup-plugin-node-globals": "^1.4.0",
8686
"rollup-plugin-terser": "^7.0.2",

src/__tests__/__snapshots__/index.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`format calls node with the script path and args 1`] = `node <PROJECT_ROOT>/src/scripts/test.js --no-watch`;
3+
exports[`format calls node with the script path and args including inspect-brk argument: format script 1`] = `node --inspect-brk=3080 <PROJECT_ROOT>/src/scripts/test.js --no-watch`;
44
5-
exports[`format calls node with the script path and args including inspect-brk argument 1`] = `node --inspect-brk=3080 <PROJECT_ROOT>/src/scripts/test.js --no-watch`;
5+
exports[`format calls node with the script path and args: format script 1`] = `node <PROJECT_ROOT>/src/scripts/test.js --no-watch`;
66
7-
exports[`format does not log for other signals 1`] = `Array []`;
7+
exports[`format does not log for other signals: format signal 1`] = `Array []`;
88
9-
exports[`format logs for SIGKILL signal 1`] = `
9+
exports[`format logs for SIGKILL signal: format signal 1`] = `
1010
Array [
1111
Array [
1212
The script "lint" failed because the process exited too early. This probably means the system ran out of memory or someone called \`kill -9\` on the process.,
1313
],
1414
]
1515
`;
1616
17-
exports[`format logs for SIGTERM signal 1`] = `
17+
exports[`format logs for SIGTERM signal: format signal 1`] = `
1818
Array [
1919
Array [
2020
The script "build" failed because the process exited too early. Someone might have called \`kill\` or \`killall\`, or the system could be shutting down.,
2121
],
2222
]
2323
`;
2424
25-
exports[`format logs help with no args 1`] = `
25+
exports[`format logs help with no args: format snapshotLog 1`] = `
2626
Array [
2727
Array [
2828
@@ -46,4 +46,4 @@ May the force be with you.
4646
]
4747
`;
4848
49-
exports[`format throws unknown script 1`] = `Unknown script "unknown-script".`;
49+
exports[`format throws unknown script: format error 1`] = `Unknown script "unknown-script".`;

src/__tests__/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ cases(
2828
}
2929
require('../')
3030
if (snapshotLog) {
31-
expect(console.log.mock.calls).toMatchSnapshot()
31+
expect(console.log.mock.calls).toMatchSnapshot('format snapshotLog')
3232
} else if (signal) {
3333
expect(process.exit).toHaveBeenCalledTimes(1)
3434
expect(process.exit).toHaveBeenCalledWith(1)
35-
expect(console.log.mock.calls).toMatchSnapshot()
35+
expect(console.log.mock.calls).toMatchSnapshot('format signal')
3636
} else {
3737
expect(crossSpawnSyncMock).toHaveBeenCalledTimes(1)
3838
const [firstCall] = crossSpawnSyncMock.mock.calls
3939
const [script, calledArgs] = firstCall
40-
expect([script, ...calledArgs].join(' ')).toMatchSnapshot()
40+
expect([script, ...calledArgs].join(' ')).toMatchSnapshot('format script')
4141
}
4242
} catch (error) {
4343
if (throws) {
44-
expect(error.message).toMatchSnapshot()
44+
expect(error.message).toMatchSnapshot('format error')
4545
} else {
4646
throw error
4747
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`pre-commit calls lint-staged CLI with default args 1`] = `lint-staged --config ./src/config/lintstagedrc.js`;
3+
exports[`pre-commit calls lint-staged CLI with default args: pre-commit scriptOne 1`] = `lint-staged --config ./src/config/lintstagedrc.js`;
44

5-
exports[`pre-commit calls lint-staged CLI with default args 2`] = `npm run validate`;
5+
exports[`pre-commit calls lint-staged CLI with default args: pre-commit scriptTwo 1`] = `npm run validate`;
66

7-
exports[`pre-commit does not use built-in config with .lintstagedrc file 1`] = `lint-staged`;
7+
exports[`pre-commit does not use built-in config with .lintstagedrc file: pre-commit scriptOne 1`] = `lint-staged`;
88

9-
exports[`pre-commit does not use built-in config with .lintstagedrc file 2`] = `npm run validate`;
9+
exports[`pre-commit does not use built-in config with .lintstagedrc file: pre-commit scriptTwo 1`] = `npm run validate`;
1010

11-
exports[`pre-commit does not use built-in config with --config 1`] = `lint-staged --config ./custom-config.js`;
11+
exports[`pre-commit does not use built-in config with --config: pre-commit scriptOne 1`] = `lint-staged --config ./custom-config.js`;
1212

13-
exports[`pre-commit does not use built-in config with --config 2`] = `npm run validate`;
13+
exports[`pre-commit does not use built-in config with --config: pre-commit scriptTwo 1`] = `npm run validate`;
1414

15-
exports[`pre-commit does not use built-in config with lint-staged pkg prop 1`] = `lint-staged`;
15+
exports[`pre-commit does not use built-in config with lint-staged pkg prop: pre-commit scriptOne 1`] = `lint-staged`;
1616

17-
exports[`pre-commit does not use built-in config with lint-staged pkg prop 2`] = `npm run validate`;
17+
exports[`pre-commit does not use built-in config with lint-staged pkg prop: pre-commit scriptTwo 1`] = `npm run validate`;
1818

19-
exports[`pre-commit does not use built-in config with lint-staged.config.js file 1`] = `lint-staged`;
19+
exports[`pre-commit does not use built-in config with lint-staged.config.js file: pre-commit scriptOne 1`] = `lint-staged`;
2020

21-
exports[`pre-commit does not use built-in config with lint-staged.config.js file 2`] = `npm run validate`;
21+
exports[`pre-commit does not use built-in config with lint-staged.config.js file: pre-commit scriptTwo 1`] = `npm run validate`;
2222

23-
exports[`pre-commit forwards args 1`] = `lint-staged --config ./src/config/lintstagedrc.js --verbose`;
23+
exports[`pre-commit forwards args: pre-commit scriptOne 1`] = `lint-staged --config ./src/config/lintstagedrc.js --verbose`;
2424

25-
exports[`pre-commit forwards args 2`] = `npm run validate`;
25+
exports[`pre-commit forwards args: pre-commit scriptTwo 1`] = `npm run validate`;

src/scripts/__tests__/precommit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ cases(
3131
expect(crossSpawnSyncMock).toHaveBeenCalledTimes(2)
3232
const [firstCall, secondCall] = crossSpawnSyncMock.mock.calls
3333
const [scriptOne, calledArgsOne] = firstCall
34-
expect([scriptOne, ...calledArgsOne].join(' ')).toMatchSnapshot()
34+
expect([scriptOne, ...calledArgsOne].join(' ')).toMatchSnapshot('pre-commit scriptOne')
3535
const [scriptTwo, calledArgsTwo] = secondCall
36-
expect([scriptTwo, ...calledArgsTwo].join(' ')).toMatchSnapshot()
36+
expect([scriptTwo, ...calledArgsTwo].join(' ')).toMatchSnapshot('pre-commit scriptTwo')
3737
} catch (error) {
3838
throw error
3939
} finally {

0 commit comments

Comments
 (0)