Skip to content

Commit

Permalink
chore: upgrade dependencies (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 4, 2020
1 parent 2ae490d commit 2d5d464
Show file tree
Hide file tree
Showing 8 changed files with 437 additions and 1,785 deletions.
13 changes: 6 additions & 7 deletions integrationTests/__snapshots__/custom-parser.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Doesn't override parser when not set 1`] = `
exports[`Doesn't override parser when not set [ESLint<6] 1`] = `
"FAIL integrationTests/__fixtures__/custom-parser/__eslint__/file.js
● Test suite failed to run
Failed to load parser 'this-parser-does-not-exist' declared in 'integrationTests/__fixtures__/custom-parser/.eslintrc.json': Cannot find module 'this-parser-does-not-exist'
Require stack:
- /mocked-path-to-jest-runner-mocha/integrationTests/__fixtures__/custom-parser/.eslintrc.json
Cannot find module 'this-parser-does-not-exist'
at mocked-stack-trace
Test Suites: 1 failed, 1 total
Tests: 0 total
Expand All @@ -16,16 +14,17 @@ Ran all test suites.
"
`;

exports[`Doesn't override parser when not set [ESLint<6] 1`] = `
exports[`Doesn't override parser when not set 1`] = `
"FAIL integrationTests/__fixtures__/custom-parser/__eslint__/file.js
● Test suite failed to run
Cannot find module 'this-parser-does-not-exist'
Failed to load parser 'this-parser-does-not-exist' declared in 'integrationTests/__fixtures__/custom-parser/.eslintrc.json': Cannot find module 'this-parser-does-not-exist'
Require stack:
- /mocked-path-to-jest-runner-mocha/integrationTests/__fixtures__/custom-parser/.eslintrc.json
at mocked-stack-trace
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;
1 change: 0 additions & 1 deletion integrationTests/__snapshots__/failing.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ Tests: 1 failed, 1 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;
1 change: 0 additions & 1 deletion integrationTests/__snapshots__/format.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ Tests: 1 failed, 1 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;
1 change: 0 additions & 1 deletion integrationTests/__snapshots__/max-warnings.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ Tests: 1 failed, 1 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@
"format": "prettier --write \"**/*.js\""
},
"dependencies": {
"chalk": "^2.4.1",
"cosmiconfig": "^5.0.0",
"create-jest-runner": "^0.5.3"
"chalk": "^3.0.0",
"cosmiconfig": "^6.0.0",
"create-jest-runner": "^0.6.0"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.1.0",
"@babel/preset-env": "~7.7.0",
"@babel/preset-env": "^7.1.0",
"babel-jest": "^25.1 || ^26",
"eslint": "^6 || ^7",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-prettier": "^3.1.4",
"execa": "^1.0.0",
"execa": "^2.1.0",
"jest": "^25.1 || ^26",
"jest-watch-select-projects": "^0.1.1",
"jest-watch-typeahead": "^0.3.1",
"jest-watch-select-projects": "^2.0.0",
"jest-watch-typeahead": "^0.5.0",
"prettier": "^1.14.3",
"rimraf": "^2.6.2"
"rimraf": "^3.0.2"
},
"peerDependencies": {
"eslint": "^6 || ^7",
Expand Down
6 changes: 3 additions & 3 deletions src/utils/getESLintOptions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const cosmiconfig = require('cosmiconfig');
const { cosmiconfigSync } = require('cosmiconfig');
const normalizeConfig = require('./normalizeConfig');

const explorer = cosmiconfig('jest-runner-eslint');
const explorer = cosmiconfigSync('jest-runner-eslint');

const getESLintOptions = config => {
const result = explorer.searchSync(config.rootDir);
const result = explorer.search(config.rootDir);

if (result) {
return normalizeConfig(result.config);
Expand Down
2 changes: 1 addition & 1 deletion src/watchFixPlugin/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable global-require */
const chalk = require('chalk');

jest.doMock('chalk', () => new chalk.constructor({ enabled: false }));
jest.doMock('chalk', () => new chalk.Instance({ level: 0 }));

jest.useFakeTimers();

Expand Down
2,182 changes: 419 additions & 1,763 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 2d5d464

Please sign in to comment.