Skip to content

Commit

Permalink
chore: add build and test scripts for the qwik-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-stepanenko committed Nov 16, 2024
1 parent e92aee4 commit 6e7a141
Show file tree
Hide file tree
Showing 5 changed files with 560 additions and 530 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "nx build website",
"build.cloudflare": "nx build-cloudflare website",
"build.headless": "nx build headless",
"build.qwik-ci": "nx run-many --target=build -p packages/*",
"change": "changeset",
"changeset.version": "changeset version && pnpm install --no-frozen-lockfile && git add --all",
"dev": "nx serve website --host",
Expand All @@ -38,6 +39,7 @@
"test.pw.headless-chrome-108": "nx e2e-chrome-108 headless",
"test.pw.headless.ci": "nx e2e headless",
"test.headless.ci": "nx component-test-ci headless",
"test.qwik-ci": "nx run-many --target=test",
"test.utils": "nx test utils"
},
"simple-git-hooks": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`init generator
GIVEN empty options and tree
WHEN initGenerator is run
THEN it should create a config file with the default values 1`] = `"{"componentsRoot":"src/components/ui"}"`;

exports[`init generator
GIVEN project root of "/my-project"
WHEN initGenerator is run
THEN it should create the config file inside my-project 1`] = `"{"componentsRoot":"/my-project/src/components/ui"}"`;
10 changes: 2 additions & 8 deletions packages/cli/src/generators/init/init-generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ describe('init generator', () => {

const expectedContents = tree.read(QWIK_UI_CONFIG_FILENAME, 'utf-8');

expect(expectedContents).toMatchInlineSnapshot(`
"{ "componentsRoot": "src/components/ui" }
"
`);
expect(expectedContents).toMatchSnapshot();
});

test(`
Expand All @@ -42,9 +39,6 @@ describe('init generator', () => {

const expectedContents = tree.read(QWIK_UI_CONFIG_FILENAME, 'utf-8');

expect(expectedContents).toMatchInlineSnapshot(`
"{ "componentsRoot": "/my-project/src/components/ui" }
"
`);
expect(expectedContents).toMatchSnapshot();
});
});
Loading

0 comments on commit 6e7a141

Please sign in to comment.