Skip to content

Commit

Permalink
disable ts-node cache while running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Feb 12, 2018
1 parent 006e80d commit a117f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "tslint src/**/*.ts test/**/*.ts",
"typings-checker":
"typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts",
"mocha": "mocha -r ts-node/register test/*.ts",
"mocha": "TS_NODE_CACHE=false mocha -r ts-node/register test/*.ts",
"prettier":
"prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",
"fix-prettier":
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export function withDefault<T extends t.Mixed>(type: T, defaultValue: t.TypeOf<T
`withDefault(${type.name}, ${JSON.stringify(defaultValue)})`,
type.is,
(v, c) => type.validate(v != null ? v : defaultValue, c),
type.serialize
type.encode
)
}

0 comments on commit a117f54

Please sign in to comment.