more readable tune test + longer snaps
This commit is contained in:
parent
c939a8a0c1
commit
a119b83b65
5 changed files with 93 additions and 1165 deletions
|
|
@ -2,10 +2,10 @@
|
|||
// it is intended to be written to tunes.snapshot.mjs using `npm run snapshot`
|
||||
|
||||
import * as tunes from './tunes.mjs';
|
||||
import { queryCode } from './runtime.mjs';
|
||||
import { queryCode, testCycles } from './runtime.mjs';
|
||||
|
||||
Object.entries(tunes).forEach(([key, code]) => {
|
||||
queryCode(code).then((haps) => {
|
||||
console.log(`export const ${key} = ${JSON.stringify(haps, null, 1)}`);
|
||||
queryCode(code, testCycles[key] || 1).then((haps) => {
|
||||
console.log(`export const ${key} = ${JSON.stringify(haps)}`);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue