Skip to content

Commit

Permalink
Merge pull request #241 from testing-library/extension
Browse files Browse the repository at this point in the history
fix: add extensions on imports
  • Loading branch information
yanick authored Jun 28, 2023
2 parents e79c857 + 71d488d commit 15ee68a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, cleanup } from './pure'
import { act, cleanup } from './pure.js'

// If we're running in a test runner that supports afterEach
// then we'll automatically run cleanup afterEach test
Expand All @@ -12,4 +12,4 @@ if (typeof afterEach === 'function' && !process.env.STL_SKIP_AUTO_CLEANUP) {
})
}

export * from './pure'
export * from './pure.js'
2 changes: 1 addition & 1 deletion src/test-setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as matchers from '@testing-library/jest-dom/dist/matchers'
import { afterEach, expect } from 'vitest'

import { act, cleanup } from './pure'
import { act, cleanup } from './pure.js'

expect.extend(matchers)

Expand Down

0 comments on commit 15ee68a

Please sign in to comment.