remove mocha from packages

This commit is contained in:
Felix Roos 2022-08-06 12:30:14 +02:00
parent 488ebf8f1a
commit 563dfbea43
10 changed files with 1327 additions and 533 deletions

1314
repl/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -24,6 +24,7 @@
"@tailwindcss/typography": "^0.5.2",
"@vitejs/plugin-react": "^1.3.0",
"autoprefixer": "^10.4.7",
"mocha": "^9.2.2",
"postcss": "^8.4.13",
"tailwindcss": "^3.0.24",
"vite": "^2.9.9"

View file

@ -1,13 +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 { describe, it, expect } from 'vitest';
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]);
expect(haps).toEqual(snaps[key]);
assert.deepStrictEqual(haps, snaps[key]);
// expect(haps).toEqual(snaps[key]);
}
describe('renders tunes', () => {