(suite)
| 100 | const sanitize = (name) => name.replace(/[^a-zA-Z0-9._-]/g, "-") |
| 101 | |
| 102 | const suiteHash = (suite) => { |
| 103 | const hash = createHash("sha256") |
| 104 | hash.update(`baseline.ts\0${suite.baseline}\0`) |
| 105 | for (const fixture of suite.fixtures) { |
| 106 | hash.update(`fixtures/${fixture.name}.ts\0${fixture.source}\0`) |
| 107 | } |
| 108 | return hash.digest("hex") |
| 109 | } |
| 110 | |
| 111 | const typescriptPackagePath = require.resolve("typescript/package.json") |
| 112 | const typescriptDir = dirname(typescriptPackagePath) |