mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 13:38:40 +00:00
fix tests
This commit is contained in:
parent
b55067ad60
commit
cf564a7d06
@ -16,17 +16,18 @@ export * from './timespan.mjs';
|
|||||||
export * from './util.mjs';
|
export * from './util.mjs';
|
||||||
export * from './speak.mjs';
|
export * from './speak.mjs';
|
||||||
export { default as gist } from './gist.js';
|
export { default as gist } from './gist.js';
|
||||||
import * as p from './package.json';
|
// below won't work with runtime.mjs (json import fails)
|
||||||
export const version = p.version;
|
/* import * as p from './package.json';
|
||||||
|
export const version = p.version; */
|
||||||
console.log(
|
console.log(
|
||||||
'%c 🌀 @strudel.cycles/core version ' + version + ' 🌀',
|
'%c // 🌀 @strudel.cycles/core loaded 🌀', // keep "//" for runnable snapshot source..
|
||||||
'background-color: black;color:white;padding:4px;border-radius:15px',
|
'background-color: black;color:white;padding:4px;border-radius:15px',
|
||||||
);
|
);
|
||||||
if (window._strudelLoaded) {
|
if (globalThis._strudelLoaded) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`@strudel.cycles/core was loaded more than once...
|
`@strudel.cycles/core was loaded more than once...
|
||||||
This might happen when you have multiple versions of strudel installed.
|
This might happen when you have multiple versions of strudel installed.
|
||||||
Please check with "npm ls @strudel.cycles/core".`,
|
Please check with "npm ls @strudel.cycles/core".`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
window._strudelLoaded = true;
|
globalThis._strudelLoaded = true;
|
||||||
|
|||||||
@ -31,6 +31,8 @@ import '@strudel.cycles/xen/xen.mjs';
|
|||||||
// import '@strudel.cycles/serial/serial.mjs';
|
// import '@strudel.cycles/serial/serial.mjs';
|
||||||
// import controls from '@strudel.cycles/core/controls.mjs';
|
// import controls from '@strudel.cycles/core/controls.mjs';
|
||||||
|
|
||||||
|
import { prebake } from './prebake.mjs';
|
||||||
|
|
||||||
class MockedNode {
|
class MockedNode {
|
||||||
chain() {
|
chain() {
|
||||||
return this;
|
return this;
|
||||||
@ -121,6 +123,7 @@ const uiHelpersMocked = {
|
|||||||
backgroundImage: id,
|
backgroundImage: id,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prebake();
|
||||||
|
|
||||||
// TODO: refactor to evalScope
|
// TODO: refactor to evalScope
|
||||||
extend(
|
extend(
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user