Skip to content

Commit

Permalink
fix broken tests (#1108)
Browse files Browse the repository at this point in the history
* fix broken tests

* fix linter failure
  • Loading branch information
cspotcode authored Aug 11, 2020
1 parent b91aa85 commit 77f568d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,17 +573,17 @@ describe('ts-node', function () {

describe('register', function () {
let registered: tsNodeTypes.Register
let moduleTestPath: string
before(() => {
registered = register({
project: PROJECT,
compilerOptions: {
jsx: 'preserve'
}
})
moduleTestPath = require.resolve('../tests/module')
})

const moduleTestPath = require.resolve('../tests/module')

afterEach(() => {
// Re-enable project after every test.
registered.enabled(true)
Expand Down

0 comments on commit 77f568d

Please sign in to comment.