Skip to content

Commit

Permalink
chore: update Jest (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Aug 26, 2022
1 parent e0e4d37 commit 64426d9
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 413 deletions.
10 changes: 5 additions & 5 deletions e2e/__snapshots__/errors.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ exports[`throws if nearest tsconfig.json is not valid 1`] = `
"FAIL e2e/__fixtures__/errors-tsconfig/index.test.ts
● Test suite failed to run
ConfigError: Compiler option 'strict' requires a value of type boolean.
3 | \\"module\\": \\"commonjs\\",
4 | \\"target\\": \\"es2019\\",
> 5 | \\"strict\\": \\"yes\\",
3 | "module": "commonjs",
4 | "target": "es2019",
> 5 | "strict": "yes",
| ^
6 | \\"noEmitOnError\\": true
6 | "noEmitOnError": true
7 | },
8 | \\"include\\": [\\"./**/*\\"]
8 | "include": ["./**/*"]
at tsconfig.json:5:15
Test Suites: 1 failed, 1 total
Tests: 0 total
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@jest/test-result": "^28.1.0",
"@jest/test-result": "^29.0.0",
"@tsd/typescript": "~4.8.0",
"@types/babel__code-frame": "^7.0.3",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"babel-jest": "^28.0.0",
"babel-jest": "^29.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"execa": "^5.1.1",
"jest": "^28.0.0",
"jest": "^29.0.0",
"prettier": "^2.4.1",
"typescript": "~4.8.0"
},
Expand Down
72 changes: 36 additions & 36 deletions src/__tests__/__snapshots__/runTest.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`runs test with all failing results 1`] = `
Object {
{
"failureMessage": "<mocked failure message>",
"leaks": false,
"numFailingTests": 2,
"numPassingTests": 0,
"numPendingTests": 0,
"numTodoTests": 0,
"openHandles": Array [],
"perfStats": Object {
"openHandles": [],
"perfStats": {
"end": 2800,
"runtime": 1800,
"slow": false,
"start": 1000,
},
"skipped": false,
"snapshot": Object {
"snapshot": {
"added": 0,
"fileDeleted": false,
"matched": 0,
"unchecked": 0,
"uncheckedKeys": Array [],
"uncheckedKeys": [],
"unmatched": 0,
"updated": 0,
},
"testFilePath": "/path/to/some/failing.test.ts",
"testResults": Array [
Object {
"ancestorTitles": Array [],
"testResults": [
{
"ancestorTitles": [],
"duration": 1800,
"failureDetails": Array [],
"failureMessages": Array [
"failureDetails": [],
"failureMessages": [
"<mocked failure message>",
],
"fullName": "tsd typecheck",
Expand All @@ -44,37 +44,37 @@ Object {
`;

exports[`runs test with all passing results 1`] = `
Object {
{
"failureMessage": null,
"leaks": false,
"numFailingTests": 0,
"numPassingTests": 2,
"numPendingTests": 0,
"numTodoTests": 0,
"openHandles": Array [],
"perfStats": Object {
"openHandles": [],
"perfStats": {
"end": 2800,
"runtime": 1800,
"slow": false,
"start": 1000,
},
"skipped": false,
"snapshot": Object {
"snapshot": {
"added": 0,
"fileDeleted": false,
"matched": 0,
"unchecked": 0,
"uncheckedKeys": Array [],
"uncheckedKeys": [],
"unmatched": 0,
"updated": 0,
},
"testFilePath": "/path/to/some/passing.test.ts",
"testResults": Array [
Object {
"ancestorTitles": Array [],
"testResults": [
{
"ancestorTitles": [],
"duration": 1800,
"failureDetails": Array [],
"failureMessages": Array [],
"failureDetails": [],
"failureMessages": [],
"fullName": "tsd typecheck",
"numPassingAsserts": 1,
"status": "passed",
Expand All @@ -85,67 +85,67 @@ Object {
`;

exports[`runs test with empty results 1`] = `
Object {
{
"failureMessage": null,
"leaks": false,
"numFailingTests": 0,
"numPassingTests": 0,
"numPendingTests": 0,
"numTodoTests": 0,
"openHandles": Array [],
"perfStats": Object {
"openHandles": [],
"perfStats": {
"end": 2800,
"runtime": 1800,
"slow": false,
"start": 1000,
},
"skipped": false,
"snapshot": Object {
"snapshot": {
"added": 0,
"fileDeleted": false,
"matched": 0,
"unchecked": 0,
"uncheckedKeys": Array [],
"uncheckedKeys": [],
"unmatched": 0,
"updated": 0,
},
"testFilePath": "/path/to/some/empty.test.ts",
"testResults": Array [],
"testResults": [],
}
`;

exports[`runs test with some failing results 1`] = `
Object {
{
"failureMessage": "<mocked failure message>",
"leaks": false,
"numFailingTests": 2,
"numPassingTests": 2,
"numPendingTests": 0,
"numTodoTests": 0,
"openHandles": Array [],
"perfStats": Object {
"openHandles": [],
"perfStats": {
"end": 2800,
"runtime": 1800,
"slow": false,
"start": 1000,
},
"skipped": false,
"snapshot": Object {
"snapshot": {
"added": 0,
"fileDeleted": false,
"matched": 0,
"unchecked": 0,
"uncheckedKeys": Array [],
"uncheckedKeys": [],
"unmatched": 0,
"updated": 0,
},
"testFilePath": "/path/to/some/failing.test.ts",
"testResults": Array [
Object {
"ancestorTitles": Array [],
"testResults": [
{
"ancestorTitles": [],
"duration": 1800,
"failureDetails": Array [],
"failureMessages": Array [
"failureDetails": [],
"failureMessages": [
"<mocked failure message>",
],
"fullName": "tsd typecheck",
Expand Down
Loading

0 comments on commit 64426d9

Please sign in to comment.