Skip to content

Commit

Permalink
implement #1435 (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Feb 7, 2022
1 parent 39e2392 commit 01d7ecd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/index.spec.ts
Expand Up @@ -79,6 +79,14 @@ test.suite('ts-node', (test) => {
testsDirRequire.resolve('ts-node/node16/tsconfig.json');
});

test('should not load typescript outside of loadConfig', async () => {
const { err, stdout } = await exec(
`node -e "require('ts-node'); console.dir(Object.keys(require.cache).filter(k => k.includes('node_modules/typescript')).length)"`
);
expect(err).toBe(null);
expect(stdout).toBe('0\n');
});

test.suite('cli', (test) => {
test('should execute cli', async () => {
const { err, stdout } = await exec(
Expand Down

0 comments on commit 01d7ecd

Please sign in to comment.