Skip to content

Commit 8569063

Browse files
author
Cédric Belin
committed
Update the "test" task [skip ci]
1 parent ce429b6 commit 8569063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {cp} from "node:fs/promises";
2+
import {env} from "node:process";
23
import {deleteAsync} from "del";
34
import {$} from "execa";
45
import gulp from "gulp";
@@ -40,6 +41,7 @@ export async function serve() {
4041

4142
// Runs the test suite.
4243
export function test() {
44+
env.NODE_ENV = "test";
4345
return $`node --test --test-reporter=spec`;
4446
}
4547

0 commit comments

Comments
 (0)