Skip to content

Commit

Permalink
test: use ES modules in codemods tests (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
martimalek authored Oct 3, 2023
1 parent d830a3e commit e3c0c93
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/codemods/__tests__/block-to-width-100-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jest.autoMockOff();
const { defineTest } = require('jscodeshift/dist/testUtils');
import { defineTest } from 'jscodeshift/dist/testUtils';

defineTest(__dirname, 'block-to-width-100', { quote: 'single' }, 'block-to-width-100', { parser: 'tsx' });
2 changes: 1 addition & 1 deletion src/codemods/__tests__/colors-to-css-vars-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jest.autoMockOff();
const { defineTest } = require('jscodeshift/dist/testUtils');
import { defineTest } from 'jscodeshift/dist/testUtils';

const tests = [
'color-in-JSX-multi-import',
Expand Down
2 changes: 1 addition & 1 deletion src/codemods/__tests__/deprecated-icons-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jest.autoMockOff();
const { defineTest } = require('jscodeshift/dist/testUtils');
import { defineTest } from 'jscodeshift/dist/testUtils';

const tests = ['jsx-usage-single-import', 'jsx-usage-multi-import', 'styled-usage', 'constant-usage'];

Expand Down
2 changes: 1 addition & 1 deletion src/codemods/__tests__/tooltip-placement-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jest.autoMockOff();
const { defineTest } = require('jscodeshift/dist/testUtils');
import { defineTest } from 'jscodeshift/dist/testUtils';

const tests = ['basic-usage', 'no-placement', 'multi-usage', 'local-rename'];

Expand Down
2 changes: 1 addition & 1 deletion src/codemods/__tests__/weak-to-secondary-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jest.autoMockOff();
const { defineTest } = require('jscodeshift/dist/testUtils');
import { defineTest } from 'jscodeshift/dist/testUtils';

const tests = ['basic-usage', 'local-rename', 'boolean-true', 'boolean-false', 'dynamic-value'];

Expand Down

0 comments on commit e3c0c93

Please sign in to comment.