We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39e2392 commit 01d7ecdCopy full SHA for 01d7ecd
src/test/index.spec.ts
@@ -79,6 +79,14 @@ test.suite('ts-node', (test) => {
79
testsDirRequire.resolve('ts-node/node16/tsconfig.json');
80
});
81
82
+ test('should not load typescript outside of loadConfig', async () => {
83
+ const { err, stdout } = await exec(
84
+ `node -e "require('ts-node'); console.dir(Object.keys(require.cache).filter(k => k.includes('node_modules/typescript')).length)"`
85
+ );
86
+ expect(err).toBe(null);
87
+ expect(stdout).toBe('0\n');
88
+ });
89
+
90
test.suite('cli', (test) => {
91
test('should execute cli', async () => {
92
const { err, stdout } = await exec(
0 commit comments