File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
"build" : " kcd-scripts build" ,
10
10
"lint" : " kcd-scripts lint" ,
11
11
"test:unit" : " kcd-scripts test --no-watch --config=jest.config.js" ,
12
+ "test:unit:monorepo" : " cd tests/unit && kcd-scripts test --no-watch --config=../../jest.config.js" ,
12
13
"test:testcafe:serve" : " serve --listen 13370 ./test-app" ,
13
14
"test:testcafe:run" : " testcafe --skip-js-errors" ,
14
15
"validate" : " kcd-scripts validate build,lint,test" ,
15
16
"test:testcafe" : " npm-run-all --silent --parallel --race test:testcafe:serve test:testcafe:run" ,
16
- "test" : " npm-run-all --parallel test:unit test:testcafe" ,
17
+ "test" : " npm-run-all --parallel test:unit test:unit:monorepo test: testcafe" ,
17
18
"semantic-release" : " semantic-release"
18
19
},
19
20
"files" : [
40
41
"type" : " git" ,
41
42
"url" : " https://github.com/testing-library/testcafe-testing-library.git"
42
43
}
43
- }
44
+ }
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ import { ClientFunction, Selector } from 'testcafe'
6
6
import { queries } from '@testing-library/dom'
7
7
8
8
const DOM_TESTING_LIBRARY_UMD_PATH = path . join (
9
- './node_modules' ,
10
- '@testing-library/dom/dist/@testing-library/dom.umd.js' ,
9
+ require . resolve ( '@testing-library/dom' ) ,
10
+ '../../' ,
11
+ 'dist/@testing-library/dom.umd.js' ,
11
12
)
12
13
const DOM_TESTING_LIBRARY_UMD = fs . readFileSync ( DOM_TESTING_LIBRARY_UMD_PATH ) . toString ( )
13
14
You can’t perform that action at this time.
0 commit comments