summaryrefslogtreecommitdiff
path: root/tests/specs/workspaces/lockfile/__test__.jsonc
blob: 706b44f018c9ce9c7b65299028dec87ddf4c7e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  "tempDir": true,
  "steps": [{
    "cwd": "pkg",
    "args": "test",
    "output": "test_pkg.out"
  }, {
    // the lockfile should always go to the workspace root
    "args": [
      "eval",
      "try { Deno.readTextFileSync('pkg/deno.lock'); console.log('should not run'); } catch {} console.log(Deno.readTextFileSync('deno.lock'))"
    ],
    "output": "expected-lock.out"
  }, {
    "args": "test",
    "output": "test_root.out"
  }, {
    "args": [
      "eval",
      "try { Deno.readTextFileSync('pkg/deno.lock'); console.log('should not run'); } catch {} console.log(Deno.readTextFileSync('deno.lock'))"
    ],
    "output": "expected-lock.out"
  }]
}