Skip to content

Commit

Permalink
refactor: move testUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Oct 13, 2019
1 parent 61602a6 commit 309f569
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/components.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { cases } from '../testUtils'
import { cases } from '../utils/testUtils'

const filename = path.resolve(__dirname, '..', '__fixtures__', 'messages.js')

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/hook.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { cases } from '../testUtils'
import { cases } from '../utils/testUtils'

const filename = path.resolve(__dirname, '..', '__fixtures__', 'messages.js')

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { cases } from '../testUtils'
import { cases } from '../utils/testUtils'

const filename = path.resolve(__dirname, '..', '__fixtures__', 'messages.js')

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/injection.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { cases } from '../testUtils'
import { cases } from '../utils/testUtils'

const filename = path.resolve(__dirname, '..', '__fixtures__', 'messages.js')

Expand Down
4 changes: 2 additions & 2 deletions src/testUtils.ts → src/utils/testUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import pluginTester from 'babel-plugin-tester'
import { Opts } from './types'
import plugin from '.'
import { Opts } from '../types'
import plugin from '..'

export function cases(
filename: string,
Expand Down

0 comments on commit 309f569

Please sign in to comment.