-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from multum/develop
Simplify tests using snapshots
- Loading branch information
Showing
7 changed files
with
302 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
const config = { | ||
coverageReporters: ['lcov', 'text-summary'], | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,11 +63,5 @@ | |
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"jest": { | ||
"coverageReporters": [ | ||
"lcov", | ||
"text-summary" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`'mysql' dialect [ reading tables ] 1`] = ` | ||
Object { | ||
"sequences": Map {}, | ||
"tables": Map { | ||
"metalize_schema.users" => Object { | ||
"columns": Array [ | ||
Object { | ||
"default": null, | ||
"identity": false, | ||
"name": "id", | ||
"nullable": false, | ||
"type": Object { | ||
"name": "bigint", | ||
"precision": 19, | ||
"raw": "bigint", | ||
"scale": 0, | ||
}, | ||
}, | ||
Object { | ||
"default": "noname", | ||
"identity": false, | ||
"name": "name", | ||
"nullable": true, | ||
"type": Object { | ||
"length": 255, | ||
"name": "varchar", | ||
"raw": "varchar(255)", | ||
}, | ||
}, | ||
Object { | ||
"default": null, | ||
"identity": false, | ||
"name": "budget", | ||
"nullable": true, | ||
"type": Object { | ||
"name": "decimal", | ||
"precision": 16, | ||
"raw": "decimal(16,3)", | ||
"scale": 3, | ||
}, | ||
}, | ||
Object { | ||
"default": null, | ||
"identity": true, | ||
"name": "age", | ||
"nullable": false, | ||
"type": Object { | ||
"name": "bigint", | ||
"precision": 19, | ||
"raw": "bigint", | ||
"scale": 0, | ||
}, | ||
}, | ||
Object { | ||
"default": null, | ||
"identity": false, | ||
"name": "child", | ||
"nullable": true, | ||
"type": Object { | ||
"name": "bigint", | ||
"precision": 19, | ||
"raw": "bigint", | ||
"scale": 0, | ||
}, | ||
}, | ||
], | ||
"foreignKeys": Array [ | ||
Object { | ||
"columns": Array [ | ||
"id", | ||
"child", | ||
], | ||
"match": "NONE", | ||
"name": "users_f_constraint", | ||
"onDelete": "CASCADE", | ||
"onUpdate": "RESTRICT", | ||
"references": Object { | ||
"columns": Array [ | ||
"parent", | ||
"id", | ||
], | ||
"table": "metalize_schema.users_child", | ||
}, | ||
}, | ||
], | ||
"indexes": Array [ | ||
Object { | ||
"columns": Array [ | ||
"id", | ||
"child", | ||
], | ||
"name": "index_name", | ||
}, | ||
Object { | ||
"columns": Array [ | ||
"age", | ||
], | ||
"name": "age_index", | ||
}, | ||
], | ||
"primaryKey": Object { | ||
"columns": Array [ | ||
"id", | ||
], | ||
"name": "PRIMARY", | ||
}, | ||
"unique": Array [ | ||
Object { | ||
"columns": Array [ | ||
"name", | ||
"age", | ||
], | ||
"name": "users_u_constraint", | ||
}, | ||
], | ||
}, | ||
}, | ||
} | ||
`; |
Oops, something went wrong.