From 108b08b90ca428d9acbe91e922f59fb4e5f1f30a Mon Sep 17 00:00:00 2001 From: Kulshekhar Kabra Date: Sat, 16 Feb 2019 18:44:14 +0530 Subject: [PATCH] fix: remove unused snapshots --- e2e/__helpers__/templates.ts | 17 +- .../__snapshots__/allow-js.test.ts.snap | 51 ---- .../__snapshots__/coverage.test.ts.snap | 46 --- .../__snapshots__/deep-path.test.ts.snap | 108 ------- .../__snapshots__/diagnostics.test.ts.snap | 90 ------ .../__snapshots__/hoisting.test.ts.snap | 151 ---------- .../isolated-modules.test.ts.snap | 34 --- .../__snapshots__/logger.test.ts.snap | 84 ------ .../__snapshots__/source-map.test.ts.snap | 172 ----------- package-lock.json | 281 ++++++++++++++---- 10 files changed, 218 insertions(+), 816 deletions(-) diff --git a/e2e/__helpers__/templates.ts b/e2e/__helpers__/templates.ts index d1caae73f6..4e1a15977b 100644 --- a/e2e/__helpers__/templates.ts +++ b/e2e/__helpers__/templates.ts @@ -1,22 +1,9 @@ export enum PackageSets { default = 'default', - babel6 = 'with-babel-6', babel7 = 'with-babel-7', - jest22 = 'with-jest-22', typescript2_7 = 'with-typescript-2-7', // invalid unsupportedVersion = 'with-unsupported-version', } -export const allValidPackageSets = [ - PackageSets.default, - PackageSets.babel6, - PackageSets.babel7, - PackageSets.jest22, - PackageSets.typescript2_7, -] -export const allPackageSetsWithPreset = [ - PackageSets.default, - PackageSets.babel6, - PackageSets.babel7, - PackageSets.typescript2_7, -] +export const allValidPackageSets = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7] +export const allPackageSetsWithPreset = [PackageSets.default, PackageSets.babel7, PackageSets.typescript2_7] diff --git a/e2e/__tests__/__snapshots__/allow-js.test.ts.snap b/e2e/__tests__/__snapshots__/allow-js.test.ts.snap index d5369d6861..a51cf0f474 100644 --- a/e2e/__tests__/__snapshots__/allow-js.test.ts.snap +++ b/e2e/__tests__/__snapshots__/allow-js.test.ts.snap @@ -17,23 +17,6 @@ exports[`using babel-jest for js files should pass using template "default" 1`] ================================================================================ `; -exports[`using babel-jest for js files should pass using template "with-babel-6" 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./bar.spec.ts - PASS ./foo.spec.js - - Test Suites: 2 passed, 2 total - Tests: 4 passed, 4 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using babel-jest for js files should pass using template "with-babel-7" 1`] = ` √ jest ↳ exit code: 0 @@ -51,23 +34,6 @@ exports[`using babel-jest for js files should pass using template "with-babel-7" ================================================================================ `; -exports[`using babel-jest for js files should pass using template "with-jest-22" 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./bar.spec.ts - PASS ./foo.spec.js - - Test Suites: 2 passed, 2 total - Tests: 4 passed, 4 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using babel-jest for js files should pass using template "with-typescript-2-7" 1`] = ` √ jest ↳ exit code: 0 @@ -102,23 +68,6 @@ exports[`using ts-jest for js files should pass using template "default" 1`] = ` ================================================================================ `; -exports[`using ts-jest for js files should pass using template "with-babel-6" 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./esm.spec.js - √ esm - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using ts-jest for js files should pass using template "with-babel-7" 1`] = ` √ jest ↳ exit code: 0 diff --git a/e2e/__tests__/__snapshots__/coverage.test.ts.snap b/e2e/__tests__/__snapshots__/coverage.test.ts.snap index 541dee25e6..acd2b5ee2d 100644 --- a/e2e/__tests__/__snapshots__/coverage.test.ts.snap +++ b/e2e/__tests__/__snapshots__/coverage.test.ts.snap @@ -23,29 +23,6 @@ exports[`using template "default" should report coverages 1`] = ` ================================================================================ `; -exports[`using template "with-babel-6" should report coverages 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - ----------|----------|----------|----------|----------|-------------------| - File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | - ----------|----------|----------|----------|----------|-------------------| - All files | 83.33 | 100 | 66.67 | 80 | | - Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 | - ----------|----------|----------|----------|----------|-------------------| - ===[ STDERR ]=================================================================== - PASS ./Hello.spec.ts - Hello Class - √ should create a new Hello - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using template "with-babel-7" should report coverages 1`] = ` √ jest ↳ exit code: 0 @@ -69,29 +46,6 @@ exports[`using template "with-babel-7" should report coverages 1`] = ` ================================================================================ `; -exports[`using template "with-jest-22" should report coverages 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - ----------|----------|----------|----------|----------|-------------------| - File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | - ----------|----------|----------|----------|----------|-------------------| - All files | 83.33 | 100 | 66.67 | 80 | | - Hello.ts | 83.33 | 100 | 66.67 | 80 | 5 | - ----------|----------|----------|----------|----------|-------------------| - ===[ STDERR ]=================================================================== - PASS ./Hello.spec.ts - Hello Class - √ should create a new Hello - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using template "with-typescript-2-7" should report coverages 1`] = ` √ jest ↳ exit code: 0 diff --git a/e2e/__tests__/__snapshots__/deep-path.test.ts.snap b/e2e/__tests__/__snapshots__/deep-path.test.ts.snap index a272acf15f..2075babfd9 100644 --- a/e2e/__tests__/__snapshots__/deep-path.test.ts.snap +++ b/e2e/__tests__/__snapshots__/deep-path.test.ts.snap @@ -49,60 +49,6 @@ exports[`Deep paths test should pass using template "default": output 1`] = ` ================================================================================ `; -exports[`Deep paths test should pass using template "with-babel-6": lcov 1`] = ` -"TN: -SF:/src/Button/click.ts -FN:3,click -FNF:1 -FNH:1 -FNDA:1,click -DA:1,1 -DA:3,1 -DA:4,1 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:/src/Tests/Button/click.test.ts -FN:3,(anonymous_0) -FNF:1 -FNH:1 -FNDA:1,(anonymous_0) -DA:1,1 -DA:3,1 -DA:4,1 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -" -`; - -exports[`Deep paths test should pass using template "with-babel-6": output 1`] = ` - √ npm -s run test - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - =============================== Coverage summary =============================== - Statements : 100% ( 6/6 ) - Branches : 100% ( 0/0 ) - Functions : 100% ( 2/2 ) - Lines : 100% ( 6/6 ) - ================================================================================ - ===[ STDERR ]=================================================================== - PASS Button/click.test.ts - √ button should click! - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`Deep paths test should pass using template "with-babel-7": lcov 1`] = ` "TN: SF:/src/Button/click.ts @@ -152,60 +98,6 @@ exports[`Deep paths test should pass using template "with-babel-7": output 1`] = ================================================================================ `; -exports[`Deep paths test should pass using template "with-jest-22": lcov 1`] = ` -"TN: -SF:/src/Button/click.ts -FN:3,click -FNF:1 -FNH:1 -FNDA:1,click -DA:1,1 -DA:3,1 -DA:4,1 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:/src/Tests/Button/click.test.ts -FN:3,(anonymous_0) -FNF:1 -FNH:1 -FNDA:1,(anonymous_0) -DA:1,1 -DA:3,1 -DA:4,1 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -" -`; - -exports[`Deep paths test should pass using template "with-jest-22": output 1`] = ` - √ npm -s run test - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - =============================== Coverage summary =============================== - Statements : 100% ( 6/6 ) - Branches : 100% ( 0/0 ) - Functions : 100% ( 2/2 ) - Lines : 100% ( 6/6 ) - ================================================================================ - ===[ STDERR ]=================================================================== - PASS Button/click.test.ts - √ button should click! - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`Deep paths test should pass using template "with-typescript-2-7": lcov 1`] = ` "TN: SF:/src/Button/click.ts diff --git a/e2e/__tests__/__snapshots__/diagnostics.test.ts.snap b/e2e/__tests__/__snapshots__/diagnostics.test.ts.snap index 7be8b505c4..8f2ae96c81 100644 --- a/e2e/__tests__/__snapshots__/diagnostics.test.ts.snap +++ b/e2e/__tests__/__snapshots__/diagnostics.test.ts.snap @@ -23,29 +23,6 @@ exports[`With diagnostics, first throws should fail using template "default" 1`] ================================================================================ `; -exports[`With diagnostics, first throws should fail using template "with-babel-6" 1`] = ` - × jest - ↳ exit code: 1 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - FAIL ./main.spec.ts - ● Test suite failed to run - - TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): - main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'. - - 2 return input - ~~~~~~~~~~~~ - - Test Suites: 1 failed, 1 total - Tests: 0 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With diagnostics, first throws should fail using template "with-babel-7" 1`] = ` × jest ↳ exit code: 1 @@ -69,29 +46,6 @@ exports[`With diagnostics, first throws should fail using template "with-babel-7 ================================================================================ `; -exports[`With diagnostics, first throws should fail using template "with-jest-22" 1`] = ` - × jest - ↳ exit code: 1 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - FAIL ./main.spec.ts - ● Test suite failed to run - - TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): - main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'. - - 2 return input - ~~~~~~~~~~~~ - - Test Suites: 1 failed, 1 total - Tests: 0 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With diagnostics, first throws should fail using template "with-typescript-2-7" 1`] = ` × jest ↳ exit code: 1 @@ -137,28 +91,6 @@ exports[`With diagnostics, warn only should pass using template "default" 1`] = ================================================================================ `; -exports[`With diagnostics, warn only should pass using template "with-babel-6" 1`] = ` - √ jest --no-cache - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): - main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'. - - 2 return input - ~~~~~~~~~~~~ - PASS ./main.spec.ts - √ should pass - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With diagnostics, warn only should pass using template "with-babel-7" 1`] = ` √ jest --no-cache ↳ exit code: 0 @@ -181,28 +113,6 @@ exports[`With diagnostics, warn only should pass using template "with-babel-7" 1 ================================================================================ `; -exports[`With diagnostics, warn only should pass using template "with-jest-22" 1`] = ` - √ jest --no-cache - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): - main.ts:2:3 - error TS2322: Type 'string' is not assignable to type 'number'. - - 2 return input - ~~~~~~~~~~~~ - PASS ./main.spec.ts - √ should pass - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With diagnostics, warn only should pass using template "with-typescript-2-7" 1`] = ` √ jest --no-cache ↳ exit code: 0 diff --git a/e2e/__tests__/__snapshots__/hoisting.test.ts.snap b/e2e/__tests__/__snapshots__/hoisting.test.ts.snap index fcbf5639d3..8525995c47 100644 --- a/e2e/__tests__/__snapshots__/hoisting.test.ts.snap +++ b/e2e/__tests__/__snapshots__/hoisting.test.ts.snap @@ -75,82 +75,6 @@ exports[`Hoisting jest.mock() & jest.unmock() should pass using template "defaul ================================================================================ `; -exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-babel-6": io 1`] = ` - ===[ FILE: hello.spec.ts ]====================================================== - "use strict"; - - jest.mock('./hello'); - Object.defineProperty(exports, "__esModule", { value: true });var hello_1 = require("./hello"); - afterAll(function () { - jest.unmock('./hello'); - // this should go after - var zz = 20; - }); - describe('hello', function () { - var original = require.requireActual('./hello').default; - it('should have been mocked', function () { - jest.mock('foo', function () { - return 'bar'; - }, { virtual: true }); - var msg = hello_1.default(); - expect(hello_1.default).not.toBe(original); - expect(msg).toBeUndefined(); - expect(hello_1.default).toHaveProperty('mock'); - expect(require('foo')).toBe('bar'); - }); - }); - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJtYXBwaW5ncyI6Ijs7QUFRQSxLQUFLLElBQUwsQ0FBVSxTQUFWOzhEQVJBLElBQUEsVUFBQSxRQUFBLFNBQUEsQ0FBQTtBQUVBLFNBQVMsWUFBQTtBQUdQLFNBQUssTUFBTCxDQUFZLFNBQVo7QUFGQTtBQUNBLFFBQU0sS0FBSyxFQUFYO0FBRUQsQ0FKRDtBQVFBLFNBQVMsT0FBVCxFQUFrQixZQUFBO0FBQ2hCLFFBQU0sV0FBVyxRQUFRLGFBQVIsQ0FBc0IsU0FBdEIsRUFBaUMsT0FBbEQ7QUFDQSxPQUFHLHlCQUFILEVBQThCLFlBQUE7QUFNNUIsYUFBSyxJQUFMLENBQVUsS0FBVixFQUFpQixZQUFBO0FBQU0sbUJBQUEsS0FBQTtBQUFLLFNBQTVCLEVBQThCLEVBQUUsU0FBUyxJQUFYLEVBQTlCO0FBTEEsWUFBTSxNQUFNLFFBQUEsT0FBQSxFQUFaO0FBQ0EsZUFBTyxRQUFBLE9BQVAsRUFBYyxHQUFkLENBQWtCLElBQWxCLENBQXVCLFFBQXZCO0FBQ0EsZUFBTyxHQUFQLEVBQVksYUFBWjtBQUNBLGVBQU8sUUFBQSxPQUFQLEVBQWMsY0FBZCxDQUE2QixNQUE3QjtBQUNBLGVBQU8sUUFBUSxLQUFSLENBQVAsRUFBdUIsSUFBdkIsQ0FBNEIsS0FBNUI7QUFFRCxLQVBEO0FBUUQsQ0FWRCIsIm5hbWVzIjpbXSwic291cmNlcyI6WyI8Y3dkPi9oZWxsby5zcGVjLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBoZWxsbyBmcm9tICcuL2hlbGxvJztcblxuYWZ0ZXJBbGwoKCkgPT4ge1xuICAvLyB0aGlzIHNob3VsZCBnbyBhZnRlclxuICBjb25zdCB6eiA9IDIwO1xuICBqZXN0LnVubW9jaygnLi9oZWxsbycpO1xufSlcblxuamVzdC5tb2NrKCcuL2hlbGxvJyk7XG5cbmRlc2NyaWJlKCdoZWxsbycsICgpID0+IHtcbiAgY29uc3Qgb3JpZ2luYWwgPSByZXF1aXJlLnJlcXVpcmVBY3R1YWwoJy4vaGVsbG8nKS5kZWZhdWx0O1xuICBpdCgnc2hvdWxkIGhhdmUgYmVlbiBtb2NrZWQnLCAoKSA9PiB7XG4gICAgY29uc3QgbXNnID0gaGVsbG8oKTtcbiAgICBleHBlY3QoaGVsbG8pLm5vdC50b0JlKG9yaWdpbmFsKTtcbiAgICBleHBlY3QobXNnKS50b0JlVW5kZWZpbmVkKCk7XG4gICAgZXhwZWN0KGhlbGxvKS50b0hhdmVQcm9wZXJ0eSgnbW9jaycpO1xuICAgIGV4cGVjdChyZXF1aXJlKCdmb28nKSkudG9CZSgnYmFyJyk7XG4gICAgamVzdC5tb2NrKCdmb28nLCAoKSA9PiAnYmFyJywgeyB2aXJ0dWFsOiB0cnVlIH0pO1xuICB9KTtcbn0pO1xuIl0sInZlcnNpb24iOjN9 - ===[ INLINE SOURCE MAPS ]======================================================= - mappings: >- - ;;AAQA,KAAK,IAAL,CAAU,SAAV;8DARA,IAAA,UAAA,QAAA,SAAA,CAAA;AAEA,SAAS,YAAA;AAGP,SAAK,MAAL,CAAY,SAAZ;AAFA;AACA,QAAM,KAAK,EAAX;AAED,CAJD;AAQA,SAAS,OAAT,EAAkB,YAAA;AAChB,QAAM,WAAW,QAAQ,aAAR,CAAsB,SAAtB,EAAiC,OAAlD;AACA,OAAG,yBAAH,EAA8B,YAAA;AAM5B,aAAK,IAAL,CAAU,KAAV,EAAiB,YAAA;AAAM,mBAAA,KAAA;AAAK,SAA5B,EAA8B,EAAE,SAAS,IAAX,EAA9B;AALA,YAAM,MAAM,QAAA,OAAA,EAAZ;AACA,eAAO,QAAA,OAAP,EAAc,GAAd,CAAkB,IAAlB,CAAuB,QAAvB;AACA,eAAO,GAAP,EAAY,aAAZ;AACA,eAAO,QAAA,OAAP,EAAc,cAAd,CAA6B,MAA7B;AACA,eAAO,QAAQ,KAAR,CAAP,EAAuB,IAAvB,CAA4B,KAA5B;AAED,KAPD;AAQD,CAVD - names: [] - sources: - - /hello.spec.ts - sourcesContent: - - | - import hello from './hello'; - - afterAll(() => { - // this should go after - const zz = 20; - jest.unmock('./hello'); - }) - - jest.mock('./hello'); - - describe('hello', () => { - const original = require.requireActual('./hello').default; - it('should have been mocked', () => { - const msg = hello(); - expect(hello).not.toBe(original); - expect(msg).toBeUndefined(); - expect(hello).toHaveProperty('mock'); - expect(require('foo')).toBe('bar'); - jest.mock('foo', () => 'bar', { virtual: true }); - }); - }); - version: 3 - ================================================================================ -`; - -exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-babel-6": output 1`] = ` - √ jest --no-cache - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./hello.spec.ts - hello - √ should have been mocked - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-babel-7": io 1`] = ` ===[ FILE: hello.spec.ts ]====================================================== "use strict"; @@ -235,81 +159,6 @@ exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-b ================================================================================ `; -exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-jest-22": io 1`] = ` - ===[ FILE: hello.spec.ts ]====================================================== - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - jest.mock('./hello'); - var hello_1 = require("./hello"); - afterAll(function () { - jest.unmock('./hello'); - // this should go after - var zz = 20; - }); - describe('hello', function () { - var original = require.requireActual('./hello').default; - it('should have been mocked', function () { - jest.mock('foo', function () { return 'bar'; }, { virtual: true }); - var msg = hello_1.default(); - expect(hello_1.default).not.toBe(original); - expect(msg).toBeUndefined(); - expect(hello_1.default).toHaveProperty('mock'); - expect(require('foo')).toBe('bar'); - }); - }); - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoiPGN3ZD4vaGVsbG8uc3BlYy50cyIsIm1hcHBpbmdzIjoiOztBQVFBLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7QUFSckIsaUNBQTRCO0FBRTVCLFFBQVEsQ0FBQztJQUdQLElBQUksQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUM7SUFGdkIsdUJBQXVCO0lBQ3ZCLElBQU0sRUFBRSxHQUFHLEVBQUUsQ0FBQztDQUVmLENBQUMsQ0FBQTtBQUlGLFFBQVEsQ0FBQyxPQUFPLEVBQUU7SUFDaEIsSUFBTSxRQUFRLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxTQUFTLENBQUMsQ0FBQyxPQUFPLENBQUM7SUFDMUQsRUFBRSxDQUFDLHlCQUF5QixFQUFFO1FBTTVCLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLGNBQU0sT0FBQSxLQUFLLEVBQUwsQ0FBSyxFQUFFLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7UUFMakQsSUFBTSxHQUFHLEdBQUcsZUFBSyxFQUFFLENBQUM7UUFDcEIsTUFBTSxDQUFDLGVBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDakMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLGFBQWEsRUFBRSxDQUFDO1FBQzVCLE1BQU0sQ0FBQyxlQUFLLENBQUMsQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDckMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztLQUVwQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyIsIm5hbWVzIjpbXSwic291cmNlcyI6WyI8Y3dkPi9oZWxsby5zcGVjLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBoZWxsbyBmcm9tICcuL2hlbGxvJztcblxuYWZ0ZXJBbGwoKCkgPT4ge1xuICAvLyB0aGlzIHNob3VsZCBnbyBhZnRlclxuICBjb25zdCB6eiA9IDIwO1xuICBqZXN0LnVubW9jaygnLi9oZWxsbycpO1xufSlcblxuamVzdC5tb2NrKCcuL2hlbGxvJyk7XG5cbmRlc2NyaWJlKCdoZWxsbycsICgpID0+IHtcbiAgY29uc3Qgb3JpZ2luYWwgPSByZXF1aXJlLnJlcXVpcmVBY3R1YWwoJy4vaGVsbG8nKS5kZWZhdWx0O1xuICBpdCgnc2hvdWxkIGhhdmUgYmVlbiBtb2NrZWQnLCAoKSA9PiB7XG4gICAgY29uc3QgbXNnID0gaGVsbG8oKTtcbiAgICBleHBlY3QoaGVsbG8pLm5vdC50b0JlKG9yaWdpbmFsKTtcbiAgICBleHBlY3QobXNnKS50b0JlVW5kZWZpbmVkKCk7XG4gICAgZXhwZWN0KGhlbGxvKS50b0hhdmVQcm9wZXJ0eSgnbW9jaycpO1xuICAgIGV4cGVjdChyZXF1aXJlKCdmb28nKSkudG9CZSgnYmFyJyk7XG4gICAgamVzdC5tb2NrKCdmb28nLCAoKSA9PiAnYmFyJywgeyB2aXJ0dWFsOiB0cnVlIH0pO1xuICB9KTtcbn0pO1xuIl0sInZlcnNpb24iOjN9 - ===[ INLINE SOURCE MAPS ]======================================================= - file: /hello.spec.ts - mappings: >- - ;;AAQA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AARrB,iCAA4B;AAE5B,QAAQ,CAAC;IAGP,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAFvB,uBAAuB;IACvB,IAAM,EAAE,GAAG,EAAE,CAAC;CAEf,CAAC,CAAA;AAIF,QAAQ,CAAC,OAAO,EAAE;IAChB,IAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;IAC1D,EAAE,CAAC,yBAAyB,EAAE;QAM5B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,cAAM,OAAA,KAAK,EAAL,CAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QALjD,IAAM,GAAG,GAAG,eAAK,EAAE,CAAC;QACpB,MAAM,CAAC,eAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAC;QAC5B,MAAM,CAAC,eAAK,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAEpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC - names: [] - sources: - - /hello.spec.ts - sourcesContent: - - | - import hello from './hello'; - - afterAll(() => { - // this should go after - const zz = 20; - jest.unmock('./hello'); - }) - - jest.mock('./hello'); - - describe('hello', () => { - const original = require.requireActual('./hello').default; - it('should have been mocked', () => { - const msg = hello(); - expect(hello).not.toBe(original); - expect(msg).toBeUndefined(); - expect(hello).toHaveProperty('mock'); - expect(require('foo')).toBe('bar'); - jest.mock('foo', () => 'bar', { virtual: true }); - }); - }); - version: 3 - ================================================================================ -`; - -exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-jest-22": output 1`] = ` - √ jest --no-cache - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./hello.spec.ts - hello - √ should have been mocked - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`Hoisting jest.mock() & jest.unmock() should pass using template "with-typescript-2-7": io 1`] = ` ===[ FILE: hello.spec.ts ]====================================================== "use strict"; diff --git a/e2e/__tests__/__snapshots__/isolated-modules.test.ts.snap b/e2e/__tests__/__snapshots__/isolated-modules.test.ts.snap index f744686504..2ced99c2f4 100644 --- a/e2e/__tests__/__snapshots__/isolated-modules.test.ts.snap +++ b/e2e/__tests__/__snapshots__/isolated-modules.test.ts.snap @@ -17,23 +17,6 @@ exports[`With isolatedModules enabled should pass using template "default" 1`] = ================================================================================ `; -exports[`With isolatedModules enabled should pass using template "with-babel-6" 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./main.spec.ts - √ should pass - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With isolatedModules enabled should pass using template "with-babel-7" 1`] = ` √ jest ↳ exit code: 0 @@ -51,23 +34,6 @@ exports[`With isolatedModules enabled should pass using template "with-babel-7" ================================================================================ `; -exports[`With isolatedModules enabled should pass using template "with-jest-22" 1`] = ` - √ jest - ↳ exit code: 0 - ===[ STDOUT ]=================================================================== - - ===[ STDERR ]=================================================================== - PASS ./main.spec.ts - √ should pass - - Test Suites: 1 passed, 1 total - Tests: 1 passed, 1 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`With isolatedModules enabled should pass using template "with-typescript-2-7" 1`] = ` √ jest ↳ exit code: 0 diff --git a/e2e/__tests__/__snapshots__/logger.test.ts.snap b/e2e/__tests__/__snapshots__/logger.test.ts.snap index de0cea49c1..24a0facfa5 100644 --- a/e2e/__tests__/__snapshots__/logger.test.ts.snap +++ b/e2e/__tests__/__snapshots__/logger.test.ts.snap @@ -37,54 +37,6 @@ Array [ ] `; -exports[`TS_JEST_LOG should pass and create log file when using template "with-babel-6" 1`] = ` -Array [ - "[level:20] creating jest presets not handling JavaScript files", - "[level:20] creating Importer singleton", - "[level:20] creating jest presets not handling JavaScript files", - "[level:20] checking version of jest: OK", - "[level:20] created new transformer", - "[level:20] computing cache key for /Hello.spec.ts", - "[level:30] no matching config-set found, creating a new one", - "[level:20] backporting config", - "[level:20] normalized jest config", - "[level:20] normalized ts-jest config", - "[level:20] loaded module babel-core", - "[level:20] patching babel-core", - "[level:20] checking version of babel-core: OK", - "[level:30] patched babel-core/lib/transformation/file", - "[level:20] normalized babel config", - "[level:20] loaded module typescript", - "[level:20] patching typescript", - "[level:20] checking version of typescript: OK", - "[level:20] readTsConfig(): reading /tsconfig.json", - "[level:20] normalized typescript config", - "[level:20] processing /Hello.spec.ts", - "[level:20] creating babel-jest transformer", - "[level:20] loaded module babel-core", - "[level:20] loaded module babel-jest", - "[level:20] patching babel-jest", - "[level:20] checking version of babel-jest: OK", - "[level:20] creating typescript compiler (language service)", - "[level:20] file caching disabled", - "[level:20] creating language service", - "[level:20] readThrough(): no cache", - "[level:20] getOutput(): compiling using language service", - "[level:20] updateMemoryCache()", - "[level:20] visitSourceFileNode(): hoisting", - "[level:20] getOutput(): computing diagnostics", - "[level:20] calling babel-jest processor", - "[level:20] computing cache key for /Hello.ts", - "[level:20] processing /Hello.ts", - "[level:20] readThrough(): no cache", - "[level:20] getOutput(): compiling using language service", - "[level:20] updateMemoryCache()", - "[level:20] visitSourceFileNode(): hoisting", - "[level:20] getOutput(): computing diagnostics", - "[level:20] calling babel-jest processor", -] -`; - exports[`TS_JEST_LOG should pass and create log file when using template "with-babel-7" 1`] = ` Array [ "[level:20] creating jest presets not handling JavaScript files", @@ -131,42 +83,6 @@ Array [ ] `; -exports[`TS_JEST_LOG should pass and create log file when using template "with-jest-22" 1`] = ` -Array [ - "[level:20] creating Importer singleton", - "[level:20] creating jest presets not handling JavaScript files", - "[level:20] checking version of jest: OK", - "[level:20] created new transformer", - "[level:20] computing cache key for /Hello.spec.ts", - "[level:30] no matching config-set found, creating a new one", - "[level:20] backporting config", - "[level:20] normalized jest config", - "[level:20] normalized ts-jest config", - "[level:20] babel is disabled", - "[level:20] loaded module typescript", - "[level:20] patching typescript", - "[level:20] checking version of typescript: OK", - "[level:20] readTsConfig(): reading /tsconfig.json", - "[level:20] normalized typescript config", - "[level:20] processing /Hello.spec.ts", - "[level:20] creating typescript compiler (language service)", - "[level:20] file caching disabled", - "[level:20] creating language service", - "[level:20] readThrough(): no cache", - "[level:20] getOutput(): compiling using language service", - "[level:20] updateMemoryCache()", - "[level:20] visitSourceFileNode(): hoisting", - "[level:20] getOutput(): computing diagnostics", - "[level:20] computing cache key for /Hello.ts", - "[level:20] processing /Hello.ts", - "[level:20] readThrough(): no cache", - "[level:20] getOutput(): compiling using language service", - "[level:20] updateMemoryCache()", - "[level:20] visitSourceFileNode(): hoisting", - "[level:20] getOutput(): computing diagnostics", -] -`; - exports[`TS_JEST_LOG should pass and create log file when using template "with-typescript-2-7" 1`] = ` Array [ "[level:20] creating jest presets not handling JavaScript files", diff --git a/e2e/__tests__/__snapshots__/source-map.test.ts.snap b/e2e/__tests__/__snapshots__/source-map.test.ts.snap index 4f10c0e99d..524139f4d9 100644 --- a/e2e/__tests__/__snapshots__/source-map.test.ts.snap +++ b/e2e/__tests__/__snapshots__/source-map.test.ts.snap @@ -87,93 +87,6 @@ exports[`using template "default" should report correct line numbers 1`] = ` ================================================================================ `; -exports[`using template "with-babel-6" should have the source maps comment 1`] = ` - ===[ FILE: main.ts ]============================================================ - "use strict"; - - Object.defineProperty(exports, "__esModule", { value: true }); - function consoleLog() { - console.log('WITHIN SOURCE'); - } - exports.consoleLog = consoleLog; - function throwError() { - throw new Error('WITHIN SOURCE'); - } - exports.throwError = throwError; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJtYXBwaW5ncyI6Ijs7O0FBQUEsU0FBZ0IsVUFBaEIsR0FBMEI7QUFDeEIsWUFBUSxHQUFSLENBQVksZUFBWjtBQUNEO0FBRkQsUUFBQSxVQUFBLEdBQUEsVUFBQTtBQUlBLFNBQWdCLFVBQWhCLEdBQTBCO0FBQ3hCLFVBQU0sSUFBSSxLQUFKLENBQVUsZUFBVixDQUFOO0FBQ0Q7QUFGRCxRQUFBLFVBQUEsR0FBQSxVQUFBIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIjxjd2Q+L21haW4udHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGNvbnNvbGVMb2coKSB7XG4gIGNvbnNvbGUubG9nKCdXSVRISU4gU09VUkNFJylcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHRocm93RXJyb3IoKSB7XG4gIHRocm93IG5ldyBFcnJvcignV0lUSElOIFNPVVJDRScpXG59XG4iXSwidmVyc2lvbiI6M30= - ===[ INLINE SOURCE MAPS ]======================================================= - mappings: >- - ;;;AAAA,SAAgB,UAAhB,GAA0B;AACxB,YAAQ,GAAR,CAAY,eAAZ;AACD;AAFD,QAAA,UAAA,GAAA,UAAA;AAIA,SAAgB,UAAhB,GAA0B;AACxB,UAAM,IAAI,KAAJ,CAAU,eAAV,CAAN;AACD;AAFD,QAAA,UAAA,GAAA,UAAA - names: [] - sources: - - /main.ts - sourcesContent: - - | - export function consoleLog() { - console.log('WITHIN SOURCE') - } - - export function throwError() { - throw new Error('WITHIN SOURCE') - } - version: 3 - ================================================================================ -`; - -exports[`using template "with-babel-6" should report correct line numbers 1`] = ` - × jest --no-cache - ↳ exit code: 1 - ===[ STDOUT ]=================================================================== - console.log main.ts:2 - WITHIN SOURCE - - console.log main.spec.ts:9 - WITHIN TEST - ===[ STDERR ]=================================================================== - FAIL ./main.spec.ts - console.log() - √ from sources - √ from tests - throw new Error() - × throws from sources - × throws from tests - - ● throw new Error() › throws from sources - - WITHIN SOURCE - - 4 | - 5 | export function throwError() { - > 6 | throw new Error('WITHIN SOURCE') - | ^ - 7 | } - 8 | - - at Object.throwError (main.ts:6:9) - at Object. (main.spec.ts:16:5) - - ● throw new Error() › throws from tests - - WITHIN TEST - - 18 | }); - 19 | test('throws from tests', () => { - > 20 | throw new Error('WITHIN TEST'); - | ^ - 21 | expect(true).toBe(true); - 22 | }); - 23 | }); - - at Object. (main.spec.ts:20:11) - - Test Suites: 1 failed, 1 total - Tests: 2 failed, 2 passed, 4 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using template "with-babel-7" should have the source maps comment 1`] = ` ===[ FILE: main.ts ]============================================================ "use strict"; @@ -267,91 +180,6 @@ exports[`using template "with-babel-7" should report correct line numbers 1`] = ================================================================================ `; -exports[`using template "with-jest-22" should have the source maps comment 1`] = ` - ===[ FILE: main.ts ]============================================================ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - function consoleLog() { - console.log('WITHIN SOURCE'); - } - exports.consoleLog = consoleLog; - function throwError() { - throw new Error('WITHIN SOURCE'); - } - exports.throwError = throwError; - //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoiPGN3ZD4vbWFpbi50cyIsIm1hcHBpbmdzIjoiOztBQUFBLFNBQWdCLFVBQVU7SUFDeEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxlQUFlLENBQUMsQ0FBQTtBQUM5QixDQUFDO0FBRkQsZ0NBRUM7QUFFRCxTQUFnQixVQUFVO0lBQ3hCLE1BQU0sSUFBSSxLQUFLLENBQUMsZUFBZSxDQUFDLENBQUE7QUFDbEMsQ0FBQztBQUZELGdDQUVDIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIjxjd2Q+L21haW4udHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGNvbnNvbGVMb2coKSB7XG4gIGNvbnNvbGUubG9nKCdXSVRISU4gU09VUkNFJylcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHRocm93RXJyb3IoKSB7XG4gIHRocm93IG5ldyBFcnJvcignV0lUSElOIFNPVVJDRScpXG59XG4iXSwidmVyc2lvbiI6M30= - ===[ INLINE SOURCE MAPS ]======================================================= - file: /main.ts - mappings: >- - ;;AAAA,SAAgB,UAAU;IACxB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;AAC9B,CAAC;AAFD,gCAEC;AAED,SAAgB,UAAU;IACxB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AAClC,CAAC;AAFD,gCAEC - names: [] - sources: - - /main.ts - sourcesContent: - - | - export function consoleLog() { - console.log('WITHIN SOURCE') - } - - export function throwError() { - throw new Error('WITHIN SOURCE') - } - version: 3 - ================================================================================ -`; - -exports[`using template "with-jest-22" should report correct line numbers 1`] = ` - × jest --no-cache - ↳ exit code: 1 - ===[ STDOUT ]=================================================================== - console.log main.ts:2 - WITHIN SOURCE - - console.log main.spec.ts:9 - WITHIN TEST - ===[ STDERR ]=================================================================== - FAIL ./main.spec.ts - console.log() - √ from sources - √ from tests - throw new Error() - × throws from sources - × throws from tests - - ● throw new Error() › throws from sources - - WITHIN SOURCE - - 4 | - 5 | export function throwError() { - > 6 | throw new Error('WITHIN SOURCE') - 7 | } - 8 | - - at Object.throwError (main.ts:6:9) - at Object. (main.spec.ts:16:5) - - ● throw new Error() › throws from tests - - WITHIN TEST - - 18 | }); - 19 | test('throws from tests', () => { - > 20 | throw new Error('WITHIN TEST'); - 21 | expect(true).toBe(true); - 22 | }); - 23 | }); - - at Object. (main.spec.ts:20:11) - - Test Suites: 1 failed, 1 total - Tests: 2 failed, 2 passed, 4 total - Snapshots: 0 total - Time: XXs - Ran all test suites. - ================================================================================ -`; - exports[`using template "with-typescript-2-7" should have the source maps comment 1`] = ` ===[ FILE: main.ts ]============================================================ "use strict"; diff --git a/package-lock.json b/package-lock.json index 433341bcfc..60666c73a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ts-jest", - "version": "23.10.5", + "version": "24.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1383,15 +1383,9 @@ "dev": true }, "ci-info": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", - "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", - "dev": true - }, - "circular-json": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", - "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", "dev": true }, "class-utils": { @@ -2259,9 +2253,9 @@ "dev": true }, "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { "esutils": "^2.0.2" @@ -2385,35 +2379,35 @@ } }, "eslint": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.13.0.tgz", - "integrity": "sha512-nqD5WQMisciZC5EHZowejLKQjWGuFS5c70fxqSKlnDME+oz9zmE8KTlX+lHSg+/5wsC/kf9Q9eMkC8qS3oM2fg==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.14.0.tgz", + "integrity": "sha512-jrOhiYyENRrRnWlMYANlGZTqb89r2FuRT+615AabBoajhNjeh9ywDNlh2LU9vTqf0WYN+L3xdXuIi7xuj/tK9w==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "ajv": "^6.5.3", + "ajv": "^6.9.1", "chalk": "^2.1.0", "cross-spawn": "^6.0.5", "debug": "^4.0.1", - "doctrine": "^2.1.0", + "doctrine": "^3.0.0", "eslint-scope": "^4.0.0", "eslint-utils": "^1.3.1", "eslint-visitor-keys": "^1.0.0", - "espree": "^5.0.0", + "espree": "^5.0.1", "esquery": "^1.0.1", "esutils": "^2.0.2", - "file-entry-cache": "^2.0.0", + "file-entry-cache": "^5.0.1", "functional-red-black-tree": "^1.0.1", "glob": "^7.1.2", "globals": "^11.7.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", - "inquirer": "^6.1.0", + "inquirer": "^6.2.2", "js-yaml": "^3.12.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.3.0", - "lodash": "^4.17.5", + "lodash": "^4.17.11", "minimatch": "^3.0.4", "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", @@ -2424,8 +2418,22 @@ "semver": "^5.5.1", "strip-ansi": "^4.0.0", "strip-json-comments": "^2.0.1", - "table": "^5.0.2", + "table": "^5.2.3", "text-table": "^0.2.0" + }, + "dependencies": { + "ajv": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.1.tgz", + "integrity": "sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + } } }, "eslint-plugin-prettier": { @@ -2469,14 +2477,22 @@ "dev": true }, "espree": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.0.tgz", - "integrity": "sha512-1MpUfwsdS9MMoN7ZXqAr9e9UKdVHDcvrJpyx7mm1WuQlx/ygErEQBzgi5Nh5qBHIoYweprhtMkTCb9GhcAIcsA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", + "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", "dev": true, "requires": { - "acorn": "^6.0.2", + "acorn": "^6.0.7", "acorn-jsx": "^5.0.0", "eslint-visitor-keys": "^1.0.0" + }, + "dependencies": { + "acorn": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.0.tgz", + "integrity": "sha512-MW/FjM+IvU9CgBzjO3UIPCE2pyEwUsoFl+VGdczOPEdxfGFjuKny/gN54mOuX7Qxmb9Rg9MCn2oKiSUeW+pjrw==", + "dev": true + } } }, "esprima": { @@ -2746,13 +2762,12 @@ } }, "file-entry-cache": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", - "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", "dev": true, "requires": { - "flat-cache": "^1.2.1", - "object-assign": "^4.0.1" + "flat-cache": "^2.0.1" } }, "fileset": { @@ -2804,17 +2819,33 @@ } }, "flat-cache": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.4.tgz", - "integrity": "sha512-VwyB3Lkgacfik2vhqR4uv2rvebqmDvFu4jlN/C1RzWoJEo8I7z4Q404oiqYCkq41mni8EzQnm95emU9seckwtg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", "dev": true, "requires": { - "circular-json": "^0.3.1", - "graceful-fs": "^4.1.2", - "rimraf": "~2.6.2", - "write": "^0.2.1" + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" + }, + "dependencies": { + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, + "flatted": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.0.tgz", + "integrity": "sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==", + "dev": true + }, "fn-name": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fn-name/-/fn-name-2.0.1.tgz", @@ -2911,12 +2942,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2931,17 +2964,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3058,7 +3094,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3070,6 +3107,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3084,6 +3122,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3091,12 +3130,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3115,6 +3156,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3195,7 +3237,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3207,6 +3250,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3328,6 +3372,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3944,14 +3989,120 @@ } }, "husky": { - "version": "0.14.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz", - "integrity": "sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/husky/-/husky-1.3.1.tgz", + "integrity": "sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg==", "dev": true, "requires": { - "is-ci": "^1.0.10", - "normalize-path": "^1.0.0", - "strip-indent": "^2.0.0" + "cosmiconfig": "^5.0.7", + "execa": "^1.0.0", + "find-up": "^3.0.0", + "get-stdin": "^6.0.0", + "is-ci": "^2.0.0", + "pkg-dir": "^3.0.0", + "please-upgrade-node": "^3.1.1", + "read-pkg": "^4.0.1", + "run-node": "^1.0.0", + "slash": "^2.0.0" + }, + "dependencies": { + "caller-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", + "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", + "dev": true, + "requires": { + "caller-callsite": "^2.0.0" + } + }, + "cosmiconfig": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.0.7.tgz", + "integrity": "sha512-PcLqxTKiDmNT6pSpy4N6KtuPwb53W+2tzNvwOZw0WH9N6O0vLIBq0x8aj8Oj75ere4YcGi48bDFCL+3fRJdlNA==", + "dev": true, + "requires": { + "import-fresh": "^2.0.0", + "is-directory": "^0.3.1", + "js-yaml": "^3.9.0", + "parse-json": "^4.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "get-stdin": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", + "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", + "dev": true + }, + "import-fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", + "dev": true, + "requires": { + "caller-path": "^2.0.0", + "resolve-from": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.1.0.tgz", + "integrity": "sha512-NhURkNcrVB+8hNfLuysU8enY5xn2KXphsHBaC2YmRNTZRc7RWusw6apSpdEj3jo4CMb6W9nrF6tTnsJsJeyu6g==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz", + "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==", + "dev": true + }, + "read-pkg": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-4.0.1.tgz", + "integrity": "sha1-ljYlN48+HE1IyFhytabsfV0JMjc=", + "dev": true, + "requires": { + "normalize-package-data": "^2.3.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + } } }, "iconv-lite": { @@ -4141,12 +4292,12 @@ "dev": true }, "is-ci": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", - "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "dev": true, "requires": { - "ci-info": "^1.5.0" + "ci-info": "^2.0.0" } }, "is-data-descriptor": { @@ -5937,12 +6088,6 @@ "validate-npm-package-license": "^3.0.1" } }, - "normalize-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz", - "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=", - "dev": true - }, "npm-path": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/npm-path/-/npm-path-2.0.4.tgz", @@ -6823,6 +6968,12 @@ "is-promise": "^2.1.0" } }, + "run-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", + "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", + "dev": true + }, "rxjs": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", @@ -8065,9 +8216,9 @@ "dev": true }, "write": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", - "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", + "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", "dev": true, "requires": { "mkdirp": "^0.5.1"