From 56ec61b29183e51f25362516b8d3b46e27701f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez=20Jim=C3=A9nez?= Date: Fri, 17 Sep 2021 00:53:03 +0200 Subject: [PATCH] test: jest script builds the distro and clear the cache before run --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a1f862..6ef8d1f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "bugs": "https://github.com/iconify/collections-json/issues", "scripts": { "build": "rimraf dist && tsup src/index.ts --format cjs,esm --dts", - "test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest" + "test": "yarn build && jest --clearCache && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest" }, "dependencies": { "upath": "^2.0.1"