replace old tests
+ ignore tune test for now + add happy-dom
This commit is contained in:
parent
03158bd689
commit
488ebf8f1a
27 changed files with 1840 additions and 1690 deletions
|
|
@ -1,12 +1,13 @@
|
|||
import { queryCode, testCycles } from '../runtime.mjs';
|
||||
import * as snaps from '../tunes.snapshot.mjs';
|
||||
import * as tunes from '../tunes.mjs';
|
||||
import { strict as assert } from 'assert';
|
||||
|
||||
// import { strict as assert } from 'assert';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
async function testTune(key) {
|
||||
// console.log('test tune', key);
|
||||
const haps = await queryCode(tunes[key], testCycles[key] || 1);
|
||||
assert.deepStrictEqual(haps, snaps[key]);
|
||||
// assert.deepStrictEqual(haps, snaps[key]);
|
||||
expect(haps).toEqual(snaps[key]);
|
||||
}
|
||||
|
||||
describe('renders tunes', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue