diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 195a44e..5c53421 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: with: node-version: '22' - run: node -v - - name: Npm install - run: npm install + - name: Install npm packages + run: npm ci - name: Run Tests run: npm run test diff --git a/detached-examples/kerberos-auth/index.js b/detached-examples/kerberos-auth/index.js index 6d69ed3..ed4636b 100644 --- a/detached-examples/kerberos-auth/index.js +++ b/detached-examples/kerberos-auth/index.js @@ -26,8 +26,9 @@ function startServer () { execSync('docker cp server/index.js server:home/server/index.js'); execSync('docker cp server/package.json server:home/server/package.json'); + execSync('docker cp server/package-lock.json server:home/server/package-lock.json'); - execSync('docker exec server sh -c "cd /home/server && npm i"'); + execSync('docker exec server sh -c "cd /home/server && npm ci"'); execSync('docker exec -d server node /home/server'); } @@ -40,8 +41,9 @@ function startClient () { execSync('docker cp client/index.js client:home/client/index.js'); execSync('docker cp client/package.json client:home/client/package.json'); + execSync('docker cp client/package-lock.json client:home/client/package-lock.json'); - execSync('docker exec client sh -c "cd /home/client && npm i"'); + execSync('docker exec client sh -c "cd /home/client && npm ci"'); execSync('docker exec -d client node /home/client'); } diff --git a/examples/filter-tests-by-metadata/index.js b/examples/filter-tests-by-metadata/index.js index 46cb4c3..0980489 100644 --- a/examples/filter-tests-by-metadata/index.js +++ b/examples/filter-tests-by-metadata/index.js @@ -2,39 +2,29 @@ fixture`The metadata of this fixture satisfies both exclusion requirements. Test .meta({ severity: 'low', repeatDaily: false }) .page`https://devexpress.github.io/testcafe/example`; -test - .meta({ device: 'desktop', skip: false }) - ('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => { - await t.wait(1000); - }); +test.meta({ device: 'desktop', skip: false })('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => { + await t.wait(1000); +}); fixture`The metadata of this fixture satisfies one exclusion requirement. TestCafe skips this fixture.` .meta({ severity: 'low', repeatDaily: true }) .page`https://devexpress.github.io/testcafe/example`; -test - .meta({ device: 'desktop', skip: false }) - ('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => { - await t.wait(1000); - }); +test.meta({ device: 'desktop', skip: false })('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => { + await t.wait(1000); +}); fixture`The metadata of this fixture doesn't satisfy either exclusion requirement. TestCafe runs this fixture.` .meta({ severity: 'high', repeatDaily: true }) .page`https://devexpress.github.io/testcafe/example`; -test - .meta({ device: 'mobile', skip: true }) - ("The metadata of this test satisfies both exclusion requirements. TestCafe skips this test.", async t => { - await t.wait(1000); - }); +test.meta({ device: 'mobile', skip: true })('The metadata of this test satisfies both exclusion requirements. TestCafe skips this test.', async t => { + await t.wait(1000); +}); -test - .meta({ device: 'mobile', skip: false }) - ("The metadata of this test satisfies one exclusion requirement. TestCafe skips this test.", async t => { - }); +test.meta({ device: 'mobile', skip: false })('The metadata of this test satisfies one exclusion requirement. TestCafe skips this test.', async () => { +}); -test - .meta({ device: 'desktop', skip: false }) - ("The metadata of this test doesn't satisfy either exclusion requirement. TestCafe runs this test.", async t => { - await t.wait(1000); - }); \ No newline at end of file +test.meta({ device: 'desktop', skip: false })('The metadata of this test doesn\'t satisfy either exclusion requirement. TestCafe runs this test.', async t => { + await t.wait(1000); +}); \ No newline at end of file