File tree 4 files changed +27
-3
lines changed
4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 2
2
/example /dist
3
3
/example /.cache
4
4
/lib
5
+ /dist
6
+ /.cache
5
7
node_modules
6
8
package-lock.json
7
9
pnpm-lock.yaml
Original file line number Diff line number Diff line change
1
+ {
2
+ "baseUrl" : " http://localhost:1234" ,
3
+ "video" : false
4
+ }
Original file line number Diff line number Diff line change
1
+ /// <reference types="cypress" />
2
+
3
+ context ( 'Page load' , ( ) => {
4
+ beforeEach ( ( ) => {
5
+ cy . visit ( '/' )
6
+ } )
7
+ describe ( 'React integration' , ( ) => {
8
+ it ( 'Should mount' , ( ) => {
9
+ cy . get ( '#app' )
10
+ . should ( 'exist' , 'success' )
11
+ } )
12
+ } )
13
+ } )
Original file line number Diff line number Diff line change 29
29
"@types/mocha" : " ^5.2.7" ,
30
30
"@types/node" : " ^10.5.2" ,
31
31
"@types/react" : " 16.9.49" ,
32
+ "cypress" : " ^5.2.0" ,
32
33
"mocha" : " ^6.2.0" ,
34
+ "npm-run-all" : " ^4.1.5" ,
35
+ "parcel" : " ^1.12.3" ,
33
36
"react" : " 16.13.1" ,
34
37
"react-dom" : " 16.13.1" ,
35
38
"react-test-renderer" : " 16.13.1" ,
39
+ "start-server-and-test" : " ^1.11.3" ,
36
40
"symbol-observable" : " ^1.2.0" ,
37
41
"ts-node" : " ^7.0.0" ,
38
- "typescript" : " 3.6.3" ,
39
- "xstream" : " 11.11.0"
42
+ "typescript" : " 3.6.3"
40
43
},
41
44
"publishConfig" : {
42
45
"access" : " public"
46
49
"compile" : " npm run compile-cjs && npm run compile-es6" ,
47
50
"compile-cjs" : " tsc --module commonjs --outDir ./lib/cjs" ,
48
51
"compile-es6" : " echo 'TODO' : tsc --module es6 --outDir ./lib/es6" ,
49
- "test" : " $(npm bin)/mocha test/*.ts --require ts-node/register --recursive"
52
+ "test" : " $(npm bin)/mocha test/*.ts --require ts-node/register --recursive; cypress run" ,
53
+ "start" : " parcel example/index.html" ,
54
+ "serve-test" : " start-server-and-test start http://localhost:1234 test"
50
55
}
51
56
}
You can’t perform that action at this time.
0 commit comments