Skip to content

Commit a775fb3

Browse files
committed
fix test being erroneously skipped
1 parent 4f18ceb commit a775fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import semver = require('semver')
55
import ts = require('typescript')
66
import proxyquire = require('proxyquire')
77
import { register, create, VERSION } from './index'
8-
import { unlinkSync, existsSync, statSync } from 'fs'
8+
import { unlinkSync, existsSync, lstatSync } from 'fs'
99
import * as promisify from 'util.promisify'
1010

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

0 commit comments

Comments
 (0)