Skip to content

Commit

Permalink
fix test being erroneously skipped (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode authored May 16, 2020
1 parent 4f18ceb commit f40b024
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 @@ -5,7 +5,7 @@ import semver = require('semver')
import ts = require('typescript')
import proxyquire = require('proxyquire')
import { register, create, VERSION } from './index'
import { unlinkSync, existsSync, statSync } from 'fs'
import { unlinkSync, existsSync, lstatSync } from 'fs'
import * as promisify from 'util.promisify'

const execP = promisify(exec)
Expand Down Expand Up @@ -415,7 +415,7 @@ describe('ts-node', function () {
})
})
it('should read tsconfig relative to realpath, not symlink, in scriptMode', function (done) {
if (statSync(join(TEST_DIR, 'main-realpath/symlink/symlink.tsx')).isSymbolicLink()) {
if (lstatSync(join(TEST_DIR, 'main-realpath/symlink/symlink.tsx')).isSymbolicLink()) {
exec(`${BIN_SCRIPT_PATH} tests/main-realpath/symlink/symlink.tsx`, function (err, stdout) {
expect(err).to.equal(null)
expect(stdout).to.equal('')
Expand Down

0 comments on commit f40b024

Please sign in to comment.