From 85690631b07dbf428f4808c091beae36ffa30405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Sat, 8 Jun 2024 22:47:47 +0200 Subject: [PATCH] Update the "test" task [skip ci] --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index bb19844..ead8e35 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,4 +1,5 @@ import {cp} from "node:fs/promises"; +import {env} from "node:process"; import {deleteAsync} from "del"; import {$} from "execa"; import gulp from "gulp"; @@ -40,6 +41,7 @@ export async function serve() { // Runs the test suite. export function test() { + env.NODE_ENV = "test"; return $`node --test --test-reporter=spec`; }