Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Oct 11, 2024
1 parent 8f582c1 commit 457c2e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src/globTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as fs from "fs/promises"
import { assertThat } from "./helpers/fileAssert"
import { app, assertPack, modifyPackageJson, PackedContext, removeUnstableProperties, verifyAsarFileTree } from "./helpers/packTester"
import { verifySmartUnpack } from "./helpers/verifySmartUnpack"
import { spawnSync } from "child_process"

async function createFiles(appDir: string) {
await Promise.all([
Expand Down Expand Up @@ -143,6 +144,7 @@ test.ifDevOrLinuxCi("local node module with file protocol", () => {
const tempDir = await tmpDir.getTempDir()
let localPath = path.join(tempDir, "foo")
await outputFile(path.join(localPath, "package.json"), `{"name":"foo","version":"9.0.0","main":"index.js","license":"MIT","dependencies":{"ms":"2.0.0"}}`)
spawnSync("npm", ["install"], { cwd: localPath })
await modifyPackageJson(projectDir, data => {
data.dependencies = {
foo: `file:${localPath}`,
Expand Down

0 comments on commit 457c2e5

Please sign in to comment.