Skip to content

Commit

Permalink
fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Feb 23, 2021
1 parent 535baf8 commit 96adc49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ test.suite('ts-node', (test) => {
if (semver.gte(ts.version, '3.2.0')) {
test('--show-config should log resolved configuration', async (t) => {
const rootDirEncoded = JSON.stringify(ROOT_DIR).slice(1, -1)
const rootDirNormalizedEncoded = JSON.stringify(ROOT_DIR.replace(/\\/g, '/')).slice(1, -1)
const { err, stdout } = await exec(`${cmd} --showConfig`)
expect(err).to.equal(null)
t.is(stdout, [
Expand All @@ -598,8 +599,8 @@ test.suite('ts-node', (test) => {
` "noEmit": false,`,
` "strict": true,`,
` "typeRoots": [`,
` "${ rootDirEncoded }/tests/typings",`,
` "${ rootDirEncoded }/node_modules/@types"`,
` "${ rootDirNormalizedEncoded }/tests/typings",`,
` "${ rootDirNormalizedEncoded }/node_modules/@types"`,
` ],`,
` "sourceMap": true,`,
` "inlineSourceMap": false,`,
Expand Down

0 comments on commit 96adc49

Please sign in to comment.