We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca7722 commit dcec5feCopy full SHA for dcec5fe
tests/utils.ts
@@ -18,8 +18,13 @@ export const pkgroll = async (
18
},
19
);
20
21
-export const installTypeScript = (fixturePath: string) => fs.symlink(
22
- path.resolve('node_modules/typescript'),
23
- path.join(fixturePath, 'node_modules/typescript'),
24
- 'dir',
25
-);
+export const installTypeScript = async (fixturePath: string) => {
+ const nodeModulesDirectory = path.join(fixturePath, 'node_modules');
+
+ await fs.mkdir(nodeModulesDirectory, { recursive: true });
+ await fs.symlink(
26
+ path.resolve('node_modules/typescript'),
27
+ path.join(nodeModulesDirectory, 'typescript'),
28
+ 'dir',
29
+ );
30
+};
0 commit comments