Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions e2e/qwik-nx-e2e/tests/chore.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {
checkFilesExist,
ensureNxProject,
readJson,
runNxCommandAsync,
uniq,
} from '@nrwl/nx-plugin/testing';

import {
runCommandUntil,
promisifiedTreeKill,
killPort,
} from '@qwikifiers/e2e/utils';

describe('appGenerator e2e', () => {
// Setting up individual workspaces per
// test can cause e2e runs to take a long time.
// For this reason, we recommend each suite only
// consumes 1 workspace. The tests should each operate
// on a unique project in the workspace, such that they
// are not dependant on one another.
beforeAll(() => {
ensureNxProject('qwik-nx', 'dist/packages/qwik-nx');
});

afterAll(async () => {
// `nx reset` kills the daemon, and performs
// some work which can help clean up e2e leftovers
await runNxCommandAsync('reset');
});

describe("qwik-nx's compiled package.json", () => {
let project: string;

it("qwik-nx's package.json should contain only expected dependencies", async () => {
const packageJson = readJson('node_modules/qwik-nx/package.json');

expect(packageJson.dependencies).toEqual({
'@nrwl/vite': '15.6.1',
});
expect(packageJson.peerDependencies).toEqual({
'@builder.io/qwik': '^0.16.0',
'@playwright/test': '^1.30.0',
undici: '^5.18.0',
vite: '^4.0.0',
vitest: '^0.25.0',
tslib: '2.4.1',
});
}, 200000);
});
});
7 changes: 5 additions & 2 deletions packages/qwik-nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
"generators": "./generators.json",
"executors": "./executors.json",
"dependencies": {
"@nrwl/vite": "~15.6.0"
"@nrwl/vite": "^15.6.0"
},
"peerDependencies": {
"@builder.io/qwik": "^0.16.0",
"vite": "~4.1.1"
"vite": "^4.0.0",
"vitest": "^0.25.0",
"@playwright/test": "^1.30.0",
"undici": "^5.18.0"
}
}
4 changes: 0 additions & 4 deletions packages/qwik-nx/src/generators/preset/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
"qwikAppName": {
"type": "string",
"description": "",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "App Name"
},
"tags": {
Expand Down