Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Jan 28, 2025
1 parent a9e1031 commit 7d1fbb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
path: |
packages/tests/playwright-report
packages/tests/test-results
packages/tests/src/_playwright/projects/dist
retention-days: 3

lint:
Expand Down
5 changes: 3 additions & 2 deletions packages/tests/src/_playwright/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { rm } from '@dd/core/helpers';
import type { BundlerFullName, Options } from '@dd/core/types';
import { allBundlers } from '@dd/tools/bundlers';
import { ROOT } from '@dd/tools/constants';
import { blue, buildPlugins, dim, green, red, yellow } from '@dd/tools/helpers';
import { blue, buildPlugins, debugFilesPlugins, dim, green, red, yellow } from '@dd/tools/helpers';
import { allPlugins } from '@dd/tools/plugins';
import type { FullConfig } from '@playwright/test';
import path from 'path';
Expand Down Expand Up @@ -78,7 +78,7 @@ const globalSetup = async (config: FullConfig<TestOptions>) => {
const buildProjectPfx = getSubPfx('Build Project');
console.time(buildProjectPfx);
// Clean the dist folders.
// await rm(path.resolve(ROOT, 'packages/tests/src/_playwright/projects/dist'));
await rm(path.resolve(ROOT, 'packages/tests/src/_playwright/projects/dist'));
console.log(
`${buildProjectPfx}Building the project with ${green(requestedBundlers.join(', '))}.`,
);
Expand All @@ -94,6 +94,7 @@ const globalSetup = async (config: FullConfig<TestOptions>) => {
clientToken: '123',
},
},
customPlugins: (opts, context) => debugFilesPlugins(context),
};

const cwd = path.resolve(__dirname, './projects');
Expand Down

0 comments on commit 7d1fbb7

Please sign in to comment.