We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ac3e1 commit 5d617a3Copy full SHA for 5d617a3
test/ts-performance/instantiations.test.js
@@ -1,11 +1,14 @@
1
-const { execSync } = require('child_process');
2
-const path = require('path');
+import { execSync } from 'child_process';
+import path from 'path';
3
+import { fileURLToPath } from 'url';
4
+
5
+const dirname = path.dirname(fileURLToPath(import.meta.url));
6
7
describe('TypeScript Performance', () => {
8
it('should have Instantiations < 200', function testInstantiations() {
9
this.timeout(60000);
10
- const testDir = path.join(__dirname);
11
+ const testDir = path.join(dirname);
12
13
try {
14
const output = execSync('pnpm tsc --noEmit --diagnostics', {
0 commit comments