diff --git a/test/package.test.js b/test/package.test.js index c8d43b7bd2..5550db8b2b 100644 --- a/test/package.test.js +++ b/test/package.test.js @@ -13,10 +13,12 @@ // limitations under the License. import assert from 'node:assert' -import { test, describe, beforeEach } from 'node:test' +import { test, describe, beforeEach, before, after } from 'node:test' import '../build/globals.js' describe('package', () => { + before(() => $.cwdHook = true) + after(() => $.cwdHook = false) beforeEach(async () => { const pack = await $`npm pack` await $`tar xf ${pack}`