Skip to content

Commit

Permalink
chore: refresh lockfile (#12197)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Dec 31, 2021
1 parent a427bfc commit e7ed702
Show file tree
Hide file tree
Showing 29 changed files with 5,806 additions and 5,319 deletions.
6 changes: 3 additions & 3 deletions e2e/__tests__/__snapshots__/console.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ PASS __tests__/console.test.js
at Console.log (node_modules/winston/lib/winston/transports/console.js:79:23)
console.log
{"message":"Info message from winston","level":"info"}
{"level":"info","message":"Info message from winston"}
at Console.log (node_modules/winston/lib/winston/transports/console.js:79:23)
console.log
{"message":"Warn message from winston","level":"warn"}
{"level":"warn","message":"Warn message from winston"}
at Console.log (node_modules/winston/lib/winston/transports/console.js:79:23)
console.log
{"message":"Error message from winston","level":"error"}
{"level":"error","message":"Error message from winston"}
at Console.log (node_modules/winston/lib/winston/transports/console.js:79:23)
`;
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/__snapshots__/coverageHandlebars.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`code coverage for Handlebars 1`] = `
-----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------|---------|----------|---------|---------|-------------------
All files | 75 | 66.66 | 66.66 | 66.66 |
greet.hbs | 75 | 66.66 | 66.66 | 66.66 | 10
All files | 75 | 61.53 | 66.66 | 66.66 |
greet.hbs | 75 | 61.53 | 66.66 | 66.66 | 10
-----------|---------|----------|---------|---------|-------------------
`;
14 changes: 7 additions & 7 deletions e2e/__tests__/__snapshots__/coverageRemapping.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Object {
"0": Object {
"loc": Object {
"end": Object {
"column": 35,
"column": 39,
"line": 11,
},
"start": Object {
"column": 34,
"column": 27,
"line": 11,
},
},
Expand Down Expand Up @@ -61,11 +61,11 @@ Object {
"1": Object {
"loc": Object {
"end": Object {
"column": 35,
"column": 39,
"line": 12,
},
"start": Object {
"column": 34,
"column": 27,
"line": 12,
},
},
Expand Down Expand Up @@ -96,7 +96,7 @@ Object {
"2": Object {
"loc": Object {
"end": Object {
"column": 31,
"column": 48,
"line": 13,
},
"start": Object {
Expand Down Expand Up @@ -141,11 +141,11 @@ Object {
"3": Object {
"loc": Object {
"end": Object {
"column": 40,
"column": 53,
"line": 14,
},
"start": Object {
"column": 30,
"column": 23,
"line": 14,
},
},
Expand Down
4 changes: 1 addition & 3 deletions e2e/__tests__/nativeAsyncMock.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
*/

import * as path from 'path';
import {extractSummary, runYarnInstall} from '../Utils';
import {extractSummary} from '../Utils';
import runJest from '../runJest';

const dir = path.resolve(__dirname, '..', 'native-async-mock');

test('mocks async functions', () => {
runYarnInstall(dir);

// --no-cache because babel can cache stuff and result in false green
const {stderr} = runJest(dir, ['--no-cache']);
expect(extractSummary(stderr).summary).toMatch(
Expand Down
1 change: 0 additions & 1 deletion e2e/__tests__/presets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ test.each(['js', 'cjs'])('supports %s preset', presetDir => {
});

onNodeVersions('>=12.17.0', () => {
// eslint-disable-next-line jest/no-identical-title
test.each(['mjs', 'js-type-module'])('supports %s preset', presetDir => {
const result = runJest(`presets/${presetDir}`);

Expand Down
1 change: 0 additions & 1 deletion e2e/__tests__/watch-plugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ test.each(['js', 'cjs'])('supports %s watch plugins', async watchPluginDir => {

onNodeVersions('>=12.17.0', () => {
test.each(['mjs', 'js-type-module'])(
// eslint-disable-next-line jest/no-identical-title
'supports %s watch plugins',
async watchPluginDir => {
const testRun = runContinuous(`watch-plugins/${watchPluginDir}`, [
Expand Down
12 changes: 8 additions & 4 deletions e2e/__tests__/workerForceExit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ test('force exits a worker that fails to exit gracefully', async () => {
expect(exitCode).toBe(0);
verifyNumPassed(stderr);

const execRes = /pid: \d+/.exec(stderr);
const execRes = /pid: (\d+)/.exec(stderr);

expect(execRes).toHaveLength(1);
expect(execRes).toHaveLength(2);

const [pid] = execRes!;
const [, pid] = execRes!;

expect(await findProcess('pid', Number(pid))).toHaveLength(0);
const pidNumber = Number(pid);

expect(pidNumber).not.toBeNaN();

expect(await findProcess('pid', pidNumber)).toHaveLength(0);
});
Loading

0 comments on commit e7ed702

Please sign in to comment.