{
  "tempDir": true,
  "tests": {
    "upgrades": {
      "steps": [
        {
          "args": "install npm:chalk",
          "output": "[WILDCARD]"
        },
        {
          "args": ["eval", "console.log(Deno.readTextFileSync('deno.lock'))"],
          "output": "deno.lock.json.out"
        },
        {
          "args": "install jsr:@denotest/add",
          "output": "[WILDCARD]"
        },
        {
          "args": [
            "eval",
            "console.log(Deno.readTextFileSync('deno.lock'))"
          ],
          "output": "deno.lock.v5.json.out"
        }
      ]
    },
    "does_not_redownload": {
      "steps": [
        {
          "args": [
            "eval",
            "Deno.writeTextFileSync('deno.json', '{\"nodeModulesDir\":\"auto\"}')"
          ],
          "output": ""
        },
        {
          "args": "install npm:chalk",
          "output": "[WILDCARD]"
        },
        {
          "args": "clean -q",
          "output": ""
        },
        {
          "args": "clean -q",
          "output": ""
        },
        // lockfile v5 doesn't need to redownload
        {
          "args": "run -A empty.js",
          "output": ""
        }
      ]
    }
  }
}
