File tree Expand file tree Collapse file tree 4 files changed +18
-22
lines changed Expand file tree Collapse file tree 4 files changed +18
-22
lines changed Original file line number Diff line number Diff line change 32
32
# shell: bash
33
33
# run: npx nx affected:build --base=last-release --exclude=website
34
34
35
- # - name: E2E Tests
36
- # shell: bash
37
- # run: npx nx affected --target= e2e --base=last-release
35
+ - name : CLI E2E Tests
36
+ shell : bash
37
+ run : npx nx e2e cli-e2e
38
38
39
39
# - name: Codecov upload
40
40
# uses: codecov/codecov-action@v2
Original file line number Diff line number Diff line change 5
5
"engines" : {
6
6
"node" : " >=16.0.0"
7
7
},
8
- "private" : false ,
8
+ "private" : true ,
9
9
"type" : " module" ,
10
10
"scripts" : {
11
11
"build.changelog-formatter" : " tsc .changeset/changelog-github-custom.ts && mv .changeset/changelog-github-custom.js .changeset/changelog-github-custom.cjs" ,
29
29
"release" : " pnpm release.prepare && pnpm release.setroot && pnpm release.publish && pnpm release.resetroot" ,
30
30
"release.publish" : " changeset publish" ,
31
31
"release.resetroot" : " cp dist/pnpm-workspace.yaml pnpm-workspace.yaml" ,
32
+ "release.e2e" : " pnpm release.prepare && pnpm release.setroot && pnpm -r exec pnpm version patch && pnpm -r publish --tag e2e --no-git-checks && pnpm release.resetroot" ,
32
33
"test.cli" : " NODE_OPTIONS=--experimental-vm-modules nx test cli" ,
33
34
"test.headless" : " nx component-test headless --skip-nx-cache" ,
34
35
"test.visual.headless" : " nx visual-test headless" ,
Original file line number Diff line number Diff line change @@ -23,13 +23,18 @@ describe('Qwik UI CLI Smoke test', () => {
23
23
24
24
it ( 'should be installed and add the button file' , ( ) => {
25
25
execSync (
26
- 'npx -y qwik-ui@0.0.0- e2e init --e2e --projectRoot / --uiComponentsPath "src/components/ui" --rootCssPath "src/global.css" --installTailwind --style "simple" --borderRadius "0" --primaryColor "cyan-600 " --components=button' ,
26
+ 'npx -y qwik-ui@e2e init --e2e --projectRoot / --uiComponentsPath "src/components/ui" --rootCssPath "src/global.css" --installTailwind --style "simple" --components=button' ,
27
27
{
28
28
cwd : projectDirectory ,
29
- stdio : 'inherit' ,
30
29
env : process . env ,
30
+ stdio : 'inherit' ,
31
31
} ,
32
32
) ;
33
+ execSync ( 'npx -y qwik-ui@e2e add button' , {
34
+ cwd : projectDirectory ,
35
+ env : process . env ,
36
+ stdio : 'inherit' ,
37
+ } ) ;
33
38
const buttonIsInTheRightPlace = existsSync (
34
39
join ( projectDirectory , 'src/components/ui/button/button.tsx' ) ,
35
40
) ;
@@ -54,7 +59,7 @@ function createTestQwikProject() {
54
59
recursive : true ,
55
60
} ) ;
56
61
57
- execSync ( `pnpm create qwik@latest basic ${ projectName } ` , {
62
+ execSync ( `pnpm create qwik@latest empty ${ projectName } ` , {
58
63
cwd : tempDir ,
59
64
stdio : 'inherit' ,
60
65
env : process . env ,
Original file line number Diff line number Diff line change 3
3
* It is meant to be called in jest's globalSetup.
4
4
*/
5
5
import { startLocalRegistry } from '@nx/js/plugins/jest/local-registry' ;
6
- import { execFileSync } from 'child_process' ;
6
+ import { execSync } from 'child_process' ;
7
7
8
8
export default async ( ) => {
9
9
// local registry target to run
@@ -16,18 +16,8 @@ export default async () => {
16
16
storage,
17
17
verbose : false ,
18
18
} ) ;
19
- const nx = require . resolve ( 'nx' ) ;
20
- execFileSync (
21
- nx ,
22
- [
23
- 'run-many' ,
24
- '--targets' ,
25
- 'publish' ,
26
- '--package-version' ,
27
- '0.0.0-e2e' ,
28
- '--tag' ,
29
- 'e2e' ,
30
- ] ,
31
- { env : process . env , stdio : 'inherit' } ,
32
- ) ;
19
+ execSync ( 'pnpm run release.e2e' , {
20
+ env : process . env ,
21
+ stdio : 'inherit' ,
22
+ } ) ;
33
23
} ;
You can’t perform that action at this time.
0 commit comments