File tree Expand file tree Collapse file tree 4 files changed +1572
-1399
lines changed
Expand file tree Collapse file tree 4 files changed +1572
-1399
lines changed Original file line number Diff line number Diff line change 88 runs-on : ${{ matrix.os }}
99 strategy :
1010 matrix :
11- node-version : [8 .x, 10 .x, 12 .x]
11+ node-version : [10 .x, 12 .x, 14 .x]
1212 os : [ubuntu-latest, macos-latest]
1313
1414 steps :
Original file line number Diff line number Diff line change 1818 "module" : " dist/index.mjs" ,
1919 "types" : " dist/index.d.ts" ,
2020 "peerDependencies" : {
21- "jest-snapshot " : " >=24 "
21+ "jest" : " >=26 "
2222 },
2323 "dependencies" : {
24- "@types/ jest" : " ^24.0.22 " ,
25- "jest " : " ^24.9 .0"
24+ "jest-snapshot " : " ^26.6.2 " ,
25+ "tslib " : " ^2.1 .0"
2626 },
2727 "devDependencies" : {
28- "@kamiazya/jest-dynamic" : " ^0.0.1" ,
29- "@rollup/plugin-node-resolve" : " ^7.0.0" ,
30- "@types/node" : " ^13.1.6" ,
31- "jest-snapshot" : " ^25.4.0" ,
28+ "@kamiazya/jest-dynamic" : " ^0.1.0" ,
29+ "@rollup/plugin-node-resolve" : " ^11.0.1" ,
30+ "@types/jest" : " ^26.0.20" ,
31+ "@types/node" : " ^14.14.20" ,
32+ "jest" : " ^26.6.3" ,
3233 "prettier" : " ^1.19.1" ,
33- "rollup" : " ^1.29.0 " ,
34+ "rollup" : " ^2.36.1 " ,
3435 "rollup-plugin-node-builtins" : " ^2.1.2" ,
35- "rollup-plugin-typescript2" : " ^0.25.3 " ,
36- "ts-jest" : " ^24.1.0 " ,
36+ "rollup-plugin-typescript2" : " ^0.29.0 " ,
37+ "ts-jest" : " ^26.4.4 " ,
3738 "tslint" : " ^5.20.1" ,
3839 "tslint-config-prettier" : " ^1.18.0" ,
3940 "tslint-plugin-prettier" : " ^2.0.1" ,
40- "typescript" : " ^3.7.2 "
41+ "typescript" : " ^4.1.3 "
4142 }
4243}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function test(something: any): something is IWrapper {
88 return something && typeof something [ raw ] === 'string' ;
99}
1010
11- function print ( wrapper : IWrapper ) : string {
11+ function serialize ( wrapper : IWrapper ) : string {
1212 return wrapper [ raw ] ;
1313}
1414
@@ -18,7 +18,7 @@ export function wrap(value: string): IWrapper {
1818
1919export const SnapshotSerializer : jest . SnapshotSerializerPlugin = {
2020 test,
21- print ,
21+ serialize ,
2222} ;
2323
2424expect . addSnapshotSerializer ( SnapshotSerializer ) ;
You can’t perform that action at this time.
0 commit comments