mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-29 20:41:47 -04:00
test(rebuild): await for async asserts
This commit is contained in:
@@ -43,8 +43,8 @@ test('rebuilds specific dependencies', async function (t: tape.Test) {
|
||||
|
||||
await rebuildPkgs(['install-scripts-example-for-pnpm'], testDefaults())
|
||||
|
||||
project.hasNot('pre-and-postinstall-scripts-example/generated-by-preinstall')
|
||||
project.hasNot('pre-and-postinstall-scripts-example/generated-by-postinstall')
|
||||
await project.hasNot('pre-and-postinstall-scripts-example/generated-by-preinstall')
|
||||
await project.hasNot('pre-and-postinstall-scripts-example/generated-by-postinstall')
|
||||
|
||||
const generatedByPreinstall = project.requireModule('install-scripts-example-for-pnpm/generated-by-preinstall')
|
||||
t.ok(typeof generatedByPreinstall === 'function', 'generatedByPreinstall() is available')
|
||||
|
||||
Reference in New Issue
Block a user