Skip to content

Commit b5f7865

Browse files
authored
Merge pull request #13 from Visual-Regression-Tracker/78-error-handling
74 error handling added
2 parents 1be386b + 8111458 commit b5f7865

File tree

11 files changed

+430
-129
lines changed

11 files changed

+430
-129
lines changed

.vscode/launch.json

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"type": "node",
6-
"request": "launch",
7-
"name": "Jest All",
8-
"program": "${workspaceFolder}/node_modules/.bin/jest",
9-
"args": ["--runInBand"],
10-
"console": "integratedTerminal",
11-
"internalConsoleOptions": "neverOpen",
12-
"disableOptimisticBPs": true,
13-
"windows": {
14-
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
15-
}
16-
},
17-
{
18-
"type": "node",
19-
"request": "launch",
20-
"name": "Jest Current File",
21-
"program": "${workspaceFolder}/node_modules/.bin/jest",
22-
"args": [
23-
"${fileBasenameNoExtension}",
24-
"--config",
25-
"jest.config.js"
26-
],
27-
"console": "integratedTerminal",
28-
"internalConsoleOptions": "neverOpen",
29-
"disableOptimisticBPs": true,
30-
"windows": {
31-
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
32-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Jest All",
8+
"program": "${workspaceFolder}/node_modules/.bin/jest",
9+
"args": [
10+
"--runInBand"
11+
],
12+
"console": "integratedTerminal",
13+
"internalConsoleOptions": "neverOpen",
14+
"disableOptimisticBPs": true,
15+
"windows": {
16+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
3317
}
34-
]
35-
}
18+
},
19+
{
20+
"type": "node",
21+
"request": "launch",
22+
"name": "Jest Current File",
23+
"program": "${workspaceFolder}/node_modules/.bin/jest",
24+
"args": [
25+
"${fileBasenameNoExtension}",
26+
"--config",
27+
"jest.config.js"
28+
],
29+
"console": "integratedTerminal",
30+
"internalConsoleOptions": "neverOpen",
31+
"disableOptimisticBPs": true,
32+
"windows": {
33+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
34+
}
35+
}
36+
]
37+
}

examples/1.png

-52.6 KB
Binary file not shown.

examples/2.png

-52.6 KB
Binary file not shown.

examples/example.spec.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'node',
4-
};
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
};

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './visualRegressionTracker'
2-
export * from './types'
1+
export * from "./visualRegressionTracker";
2+
export * from "./types";

lib/types/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from './build'
2-
export * from './config'
3-
export * from './testRun'
4-
export * from './testRunResult'
5-
export * from './testRunStatus'
1+
export * from "./build";
2+
export * from "./config";
3+
export * from "./testRun";
4+
export * from "./testRunResult";
5+
export * from "./testRunStatus";

lib/types/testRunStatus.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum TestRunStatus {
2-
new = 'new',
3-
ok = 'ok',
4-
unresolved = 'unresolved',
5-
}
2+
new = "new",
3+
ok = "ok",
4+
unresolved = "unresolved",
5+
}

0 commit comments

Comments
 (0)