Skip to content

Commit 5d617a3

Browse files
committed
switch to esm
1 parent 61ac3e1 commit 5d617a3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/ts-performance/instantiations.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
const { execSync } = require('child_process');
2-
const path = require('path');
1+
import { execSync } from 'child_process';
2+
import path from 'path';
3+
import { fileURLToPath } from 'url';
4+
5+
const dirname = path.dirname(fileURLToPath(import.meta.url));
36

47
describe('TypeScript Performance', () => {
58
it('should have Instantiations < 200', function testInstantiations() {
69
this.timeout(60000);
710

8-
const testDir = path.join(__dirname);
11+
const testDir = path.join(dirname);
912

1013
try {
1114
const output = execSync('pnpm tsc --noEmit --diagnostics', {

0 commit comments

Comments
 (0)