integrate repl into astro website

+ update build and setup tasks + workflow
+ move repl test folder to root
+ move docs and repl to website/src
This commit is contained in:
Felix Roos 2022-12-22 17:20:51 +01:00
parent 006ca12b6d
commit 818cd9044b
141 changed files with 25956 additions and 41 deletions

14
test/tunes.test.mjs Normal file
View file

@ -0,0 +1,14 @@
import { queryCode, testCycles } from './runtime.mjs';
import * as tunes from '../website/src/repl/tunes.mjs';
import { describe, it } from 'vitest';
const tuneKeys = Object.keys(tunes);
describe('renders tunes', () => {
tuneKeys.forEach((key) => {
it(`tune: ${key}`, async ({ expect }) => {
const haps = await queryCode(tunes[key], testCycles[key] || 1);
expect(haps).toMatchSnapshot();
});
});
});