Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Karrys <luke@lukekarrys.com>2022-09-29 20:02:02 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-09-30 03:27:26 +0300
commit45e43f1e87b8811a382c153488c5ad626fc59fc0 (patch)
tree98ade2ac578c06d204ff5ca93f29161f3c69f856
parent3ae796d937bd36a5b1b9fd6e9e8473b4f2ddc32d (diff)
chore(libnpmpack): add sleep to tests to reduce flakiness
-rw-r--r--workspaces/libnpmpack/test/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/workspaces/libnpmpack/test/index.js b/workspaces/libnpmpack/test/index.js
index b8007efe0..d9ec1d12a 100644
--- a/workspaces/libnpmpack/test/index.js
+++ b/workspaces/libnpmpack/test/index.js
@@ -37,8 +37,8 @@ t.test('writes tarball to file when dryRun === false', async t => {
name: 'my-cool-pkg',
version: '1.0.0',
scripts: {
- prepack: 'touch prepack',
- postpack: 'touch postpack',
+ prepack: 'touch prepack && sleep 1',
+ postpack: 'sleep 1 && touch postpack',
},
}, null, 2),
})