Skip to content

Commit

Permalink
chore: fix inconsistent use of require/import in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Sep 19, 2024
1 parent 9661ceb commit dca98de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/codemods/src/__test__/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { it, describe, expect } from 'vitest';
const util = require('node:util');
const exec = util.promisify(require('node:child_process').exec);
import { promisify } from 'node:util';
import { exec as callbackExec } from 'node:child_process';
const exec = promisify(callbackExec);

describe('integration', () => {
it('can operate on typescript', async () => {
Expand Down

0 comments on commit dca98de

Please sign in to comment.