Skip to content

Commit

Permalink
fix: set 1 to WB_DOCKER if running tests on Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Dec 5, 2024
1 parent ae28577 commit a974754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/wb/src/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export async function test(
await promisePool.promiseAll();
if (argv.e2e !== 'none') {
if (project.hasDockerfile) {
process.env.WB_DOCKER ||= '1';
await runWithSpawn(`${scripts.buildDocker(project, 'test')}`, project, argv);
}
const options = project.hasDockerfile
Expand Down Expand Up @@ -224,6 +225,7 @@ async function testOnDocker(
scripts: BaseScripts,
playwrightArgs?: string
): Promise<void> {
process.env.WB_DOCKER ||= '1';
await runWithSpawn(`${scripts.buildDocker(project, 'test')}`, project, argv);
process.exitCode = await runWithSpawn(
`${scripts.testE2E(project, argv, {
Expand Down

0 comments on commit a974754

Please sign in to comment.