Skip to content

Commit 23da68c

Browse files
author
Kent C. Dodds
committed
feat: initial release of scoped package
Reference: testing-library/dom-testing-library#260 BREAKING CHANGE: You must update all imports from 'react-testing-library' to '@testing-library/react'
1 parent f539213 commit 23da68c

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "react-testing-library",
3-
"version": "0.0.0-semantically-released",
2+
"name": "@testing-library/react",
3+
"version": "0.0.0",
44
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.",
55
"main": "dist/index.js",
6-
"module": "dist/react-testing-library.esm.js",
6+
"module": "dist/@testing-library/react.esm.js",
77
"typings": "typings/index.d.ts",
88
"engines": {
99
"node": ">=8"
@@ -42,7 +42,7 @@
4242
"license": "MIT",
4343
"dependencies": {
4444
"@babel/runtime": "^7.4.5",
45-
"dom-testing-library": "^4.1.0"
45+
"@testing-library/dom": "^5.0.0"
4646
},
4747
"devDependencies": {
4848
"@reach/router": "^1.2.1",
@@ -79,7 +79,8 @@
7979
"eslintIgnore": [
8080
"node_modules",
8181
"coverage",
82-
"dist"
82+
"dist",
83+
"*.d.ts"
8384
],
8485
"repository": {
8586
"type": "git",

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
prettyDOM,
66
fireEvent as dtlFireEvent,
77
configure as configureDTL,
8-
} from 'dom-testing-library'
8+
} from '@testing-library/dom'
99
import act, {asyncAct} from './act-compat'
1010

1111
configureDTL({
@@ -141,7 +141,7 @@ fireEvent.select = (node, init) => {
141141
}
142142

143143
// just re-export everything from dom-testing-library
144-
export * from 'dom-testing-library'
144+
export * from '@testing-library/dom'
145145
export {render, cleanup, fireEvent, act}
146146

147147
// NOTE: we're not going to export asyncAct because that's our own compatibility

typings/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {queries, BoundFunction} from 'dom-testing-library'
1+
import {queries, BoundFunction} from '@testing-library/dom'
22

3-
export * from 'dom-testing-library'
3+
export * from '@testing-library/dom'
44

55
interface Query extends Function {
66
(container: HTMLElement, ...args: any[]):

0 commit comments

Comments
 (0)