File tree Expand file tree Collapse file tree 2 files changed +56
-2
lines changed Expand file tree Collapse file tree 2 files changed +56
-2
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ checkFilesExist ,
3
+ ensureNxProject ,
4
+ readJson ,
5
+ runNxCommandAsync ,
6
+ uniq ,
7
+ } from '@nrwl/nx-plugin/testing' ;
8
+
9
+ import {
10
+ runCommandUntil ,
11
+ promisifiedTreeKill ,
12
+ killPort ,
13
+ } from '@qwikifiers/e2e/utils' ;
14
+
15
+ describe ( 'appGenerator e2e' , ( ) => {
16
+ // Setting up individual workspaces per
17
+ // test can cause e2e runs to take a long time.
18
+ // For this reason, we recommend each suite only
19
+ // consumes 1 workspace. The tests should each operate
20
+ // on a unique project in the workspace, such that they
21
+ // are not dependant on one another.
22
+ beforeAll ( ( ) => {
23
+ ensureNxProject ( 'qwik-nx' , 'dist/packages/qwik-nx' ) ;
24
+ } ) ;
25
+
26
+ afterAll ( async ( ) => {
27
+ // `nx reset` kills the daemon, and performs
28
+ // some work which can help clean up e2e leftovers
29
+ await runNxCommandAsync ( 'reset' ) ;
30
+ } ) ;
31
+
32
+ describe ( "qwik-nx's compiled package.json" , ( ) => {
33
+ let project : string ;
34
+
35
+ it ( "qwik-nx's package.json should contain only expected dependencies" , async ( ) => {
36
+ const packageJson = readJson ( 'node_modules/qwik-nx/package.json' ) ;
37
+
38
+ expect ( packageJson . dependencies ) . toEqual ( {
39
+ '@nrwl/vite' : '15.6.1' ,
40
+ } ) ;
41
+ expect ( packageJson . peerDependencies ) . toEqual ( {
42
+ '@builder.io/qwik' : '^0.16.0' ,
43
+ '@playwright/test' : '^1.30.0' ,
44
+ undici : '^5.18.0' ,
45
+ vite : '^4.0.0' ,
46
+ vitest : '^0.25.0' ,
47
+ tslib : '2.4.1' ,
48
+ } ) ;
49
+ } , 200000 ) ;
50
+ } ) ;
51
+ } ) ;
Original file line number Diff line number Diff line change 22
22
"generators" : " ./generators.json" ,
23
23
"executors" : " ./executors.json" ,
24
24
"dependencies" : {
25
- "@nrwl/vite" : " ~ 15.6.0"
25
+ "@nrwl/vite" : " ^ 15.6.0"
26
26
},
27
27
"peerDependencies" : {
28
28
"@builder.io/qwik" : " ^0.16.0" ,
29
- "vite" : " ~4.1.1"
29
+ "vite" : " ^4.0.0" ,
30
+ "vitest" : " ^0.25.0" ,
31
+ "@playwright/test" : " ^1.30.0" ,
32
+ "undici" : " ^5.18.0"
30
33
}
31
34
}
You can’t perform that action at this time.
0 commit comments