mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
349 lines
6.9 KiB
Plaintext
349 lines
6.9 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`maps code coverage against original source 1`] = `
|
|
Object {
|
|
"covered.ts": Object {
|
|
"b": Object {
|
|
"0": Array [
|
|
1,
|
|
0,
|
|
],
|
|
"1": Array [
|
|
1,
|
|
0,
|
|
],
|
|
"2": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"3": Array [
|
|
1,
|
|
0,
|
|
],
|
|
},
|
|
"branchMap": Object {
|
|
"0": Object {
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 9,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 9,
|
|
},
|
|
},
|
|
"locations": Array [
|
|
Object {
|
|
"end": Object {
|
|
"column": 35,
|
|
"line": 9,
|
|
},
|
|
"start": Object {
|
|
"column": 34,
|
|
"line": 9,
|
|
},
|
|
},
|
|
Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 9,
|
|
},
|
|
"start": Object {
|
|
"column": 38,
|
|
"line": 9,
|
|
},
|
|
},
|
|
],
|
|
"type": "cond-expr",
|
|
},
|
|
"1": Object {
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 10,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 10,
|
|
},
|
|
},
|
|
"locations": Array [
|
|
Object {
|
|
"end": Object {
|
|
"column": 35,
|
|
"line": 10,
|
|
},
|
|
"start": Object {
|
|
"column": 34,
|
|
"line": 10,
|
|
},
|
|
},
|
|
Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 10,
|
|
},
|
|
"start": Object {
|
|
"column": 38,
|
|
"line": 10,
|
|
},
|
|
},
|
|
],
|
|
"type": "cond-expr",
|
|
},
|
|
"2": Object {
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 48,
|
|
"line": 11,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 11,
|
|
},
|
|
},
|
|
"locations": Array [
|
|
Object {
|
|
"end": Object {
|
|
"column": 31,
|
|
"line": 11,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 11,
|
|
},
|
|
},
|
|
Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 11,
|
|
},
|
|
"start": Object {
|
|
"column": 35,
|
|
"line": 11,
|
|
},
|
|
},
|
|
Object {
|
|
"end": Object {
|
|
"column": 48,
|
|
"line": 11,
|
|
},
|
|
"start": Object {
|
|
"column": 43,
|
|
"line": 11,
|
|
},
|
|
},
|
|
],
|
|
"type": "binary-expr",
|
|
},
|
|
"3": Object {
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 53,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 23,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"locations": Array [
|
|
Object {
|
|
"end": Object {
|
|
"column": 40,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 30,
|
|
"line": 12,
|
|
},
|
|
},
|
|
Object {
|
|
"end": Object {
|
|
"column": 53,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 43,
|
|
"line": 12,
|
|
},
|
|
},
|
|
],
|
|
"type": "cond-expr",
|
|
},
|
|
},
|
|
"f": Object {
|
|
"0": 1,
|
|
"1": 0,
|
|
"2": 0,
|
|
},
|
|
"fnMap": Object {
|
|
"0": Object {
|
|
"decl": Object {
|
|
"end": Object {
|
|
"column": 26,
|
|
"line": 8,
|
|
},
|
|
"start": Object {
|
|
"column": 16,
|
|
"line": 8,
|
|
},
|
|
},
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 1,
|
|
"line": 15,
|
|
},
|
|
"start": Object {
|
|
"column": 47,
|
|
"line": 8,
|
|
},
|
|
},
|
|
"name": "difference",
|
|
},
|
|
"1": Object {
|
|
"decl": Object {
|
|
"end": Object {
|
|
"column": 36,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 30,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 40,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 30,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"name": "(anonymous_1)",
|
|
},
|
|
"2": Object {
|
|
"decl": Object {
|
|
"end": Object {
|
|
"column": 49,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 43,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"loc": Object {
|
|
"end": Object {
|
|
"column": 53,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 43,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"name": "(anonymous_2)",
|
|
},
|
|
},
|
|
"path": "covered.ts",
|
|
"s": Object {
|
|
"0": 1,
|
|
"1": 1,
|
|
"2": 1,
|
|
"3": 1,
|
|
"4": 1,
|
|
"5": 0,
|
|
"6": 0,
|
|
"7": 1,
|
|
},
|
|
"statementMap": Object {
|
|
"0": Object {
|
|
"end": Object {
|
|
"column": 16,
|
|
"line": 8,
|
|
},
|
|
"start": Object {
|
|
"column": 0,
|
|
"line": 8,
|
|
},
|
|
},
|
|
"1": Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 9,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 9,
|
|
},
|
|
},
|
|
"2": Object {
|
|
"end": Object {
|
|
"column": 39,
|
|
"line": 10,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 10,
|
|
},
|
|
},
|
|
"3": Object {
|
|
"end": Object {
|
|
"column": 48,
|
|
"line": 11,
|
|
},
|
|
"start": Object {
|
|
"column": 27,
|
|
"line": 11,
|
|
},
|
|
},
|
|
"4": Object {
|
|
"end": Object {
|
|
"column": 53,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 23,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"5": Object {
|
|
"end": Object {
|
|
"column": 41,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 36,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"6": Object {
|
|
"end": Object {
|
|
"column": 54,
|
|
"line": 12,
|
|
},
|
|
"start": Object {
|
|
"column": 49,
|
|
"line": 12,
|
|
},
|
|
},
|
|
"7": Object {
|
|
"end": Object {
|
|
"column": 15,
|
|
"line": 14,
|
|
},
|
|
"start": Object {
|
|
"column": 2,
|
|
"line": 14,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
`;
|