Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed May 29, 2020
1 parent 9a8d1a3 commit 234165e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function setupTestServer() {

afterEach(() => {
// https://stackoverflow.com/questions/10378690/remove-route-mappings-in-nodejs-express/28369539#28369539
ctx.server._router.stack.forEach((item, i) => {
ctx.server._router.stack.forEach((item: any, i: number) => {
if (item.name === 'mock') ctx.server._router.stack.splice(i, 1)
})
})
Expand Down
11 changes: 11 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"rootDir": "..",
"strict": true,
"noEmit": true
},
"include": [".."]
}

0 comments on commit 234165e

Please sign in to comment.