chore(deps): update jest monorepo (major) (#3734)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: William Durand <will+git@drnd.me>
This commit is contained in:
Родитель
e4bab6a425
Коммит
dc03471799
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -88,19 +88,19 @@
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"babel-eslint": "10.1.0",
|
"babel-eslint": "10.1.0",
|
||||||
"babel-gettext-extractor": "4.1.3",
|
"babel-gettext-extractor": "4.1.3",
|
||||||
"babel-jest": "26.6.3",
|
"babel-jest": "27.0.2",
|
||||||
"babel-loader": "8.2.2",
|
"babel-loader": "8.2.2",
|
||||||
"codecov": "3.8.2",
|
"codecov": "3.8.2",
|
||||||
"comment-json": "4.1.0",
|
"comment-json": "4.1.0",
|
||||||
"doctoc": "2.0.0",
|
"doctoc": "2.0.0",
|
||||||
"eslint-config-amo": "4.6.0",
|
"eslint-config-amo": "4.7.0",
|
||||||
"eslint-plugin-async-await": "0.0.0",
|
"eslint-plugin-async-await": "0.0.0",
|
||||||
"eslint-plugin-promise": "5.1.0",
|
"eslint-plugin-promise": "5.1.0",
|
||||||
"gfm.css": "1.1.2",
|
"gfm.css": "1.1.2",
|
||||||
"gh-pages": "3.2.0",
|
"gh-pages": "3.2.0",
|
||||||
"gunzip-maybe": "1.4.2",
|
"gunzip-maybe": "1.4.2",
|
||||||
"hashish": "0.0.4",
|
"hashish": "0.0.4",
|
||||||
"jest": "26.6.3",
|
"jest": "27.0.3",
|
||||||
"jest-raw-loader": "1.0.1",
|
"jest-raw-loader": "1.0.1",
|
||||||
"lodash.clonedeep": "4.5.0",
|
"lodash.clonedeep": "4.5.0",
|
||||||
"lodash.ismatchwith": "4.4.0",
|
"lodash.ismatchwith": "4.4.0",
|
||||||
|
|
|
@ -23,7 +23,7 @@ import {
|
||||||
} from './formats';
|
} from './formats';
|
||||||
import schemas from './imported';
|
import schemas from './imported';
|
||||||
|
|
||||||
const jsonSchemaDraft06 = require('ajv/lib/refs/json-schema-draft-06.json');
|
const jsonSchemaDraft06 = require('ajv/lib/refs/json-schema-draft-06');
|
||||||
|
|
||||||
function filterErrors(errors) {
|
function filterErrors(errors) {
|
||||||
if (errors) {
|
if (errors) {
|
||||||
|
|
|
@ -7,11 +7,13 @@ jest.unmock('cli');
|
||||||
let cli;
|
let cli;
|
||||||
|
|
||||||
describe('Basic CLI tests', function cliCallback() {
|
describe('Basic CLI tests', function cliCallback() {
|
||||||
|
let fakeFail;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
// Override yargs fail func so we can introspect the right errors
|
// Override yargs fail func so we can introspect the right errors
|
||||||
// are happening when we hand it bogus input.
|
// are happening when we hand it bogus input.
|
||||||
this.fakeFail = sinon.stub();
|
fakeFail = sinon.stub();
|
||||||
cli = getConfig().exitProcess(false).fail(this.fakeFail);
|
cli = getConfig().exitProcess(false).fail(fakeFail);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should default logLevel type to "fatal"', () => {
|
it('should default logLevel type to "fatal"', () => {
|
||||||
|
@ -77,14 +79,14 @@ describe('Basic CLI tests', function cliCallback() {
|
||||||
it('should show error on missing xpi', () => {
|
it('should show error on missing xpi', () => {
|
||||||
cli.parse([]);
|
cli.parse([]);
|
||||||
expect(
|
expect(
|
||||||
this.fakeFail.calledWithMatch('Not enough non-option arguments')
|
fakeFail.calledWithMatch('Not enough non-option arguments')
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show error if incorrect output', () => {
|
it('should show error if incorrect output', () => {
|
||||||
cli.parse(['-o', 'false', 'whatevs']);
|
cli.parse(['-o', 'false', 'whatevs']);
|
||||||
expect(
|
expect(
|
||||||
this.fakeFail.calledWithMatch(
|
fakeFail.calledWithMatch(
|
||||||
'Invalid values:\n Argument: output, Given: "false"'
|
'Invalid values:\n Argument: output, Given: "false"'
|
||||||
)
|
)
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
|
@ -68,7 +68,7 @@ describe('gettext()', () => {
|
||||||
jest.doMock('utils', () => {
|
jest.doMock('utils', () => {
|
||||||
return {
|
return {
|
||||||
// eslint-disable-next-line global-require
|
// eslint-disable-next-line global-require
|
||||||
i18n: buildI18nObject(require('../fixtures/fr.js')),
|
i18n: buildI18nObject(require('../fixtures/fr')),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ describe('gettext()', () => {
|
||||||
jest.doMock('utils', () => {
|
jest.doMock('utils', () => {
|
||||||
return {
|
return {
|
||||||
// eslint-disable-next-line global-require
|
// eslint-disable-next-line global-require
|
||||||
i18n: buildI18nObject(require('../fixtures/ja.js')),
|
i18n: buildI18nObject(require('../fixtures/ja')),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ describe('sprintf()', () => {
|
||||||
jest.doMock('utils', () => {
|
jest.doMock('utils', () => {
|
||||||
return {
|
return {
|
||||||
// eslint-disable-next-line global-require
|
// eslint-disable-next-line global-require
|
||||||
i18n: buildI18nObject(require('../fixtures/de.js')),
|
i18n: buildI18nObject(require('../fixtures/de')),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче