We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1f5f9 commit 728e676Copy full SHA for 728e676
src/processScript/index.ts
@@ -416,6 +416,7 @@ export async function processScript(code: string, {
416
}
417
418
if (import.meta.vitest) {
419
+ const DEBUG_LOG_PROCESSED_SCRIPTS = false
420
const TESTS_FOLDER = `game-scripts-tests`
421
422
const { test, expect } = import.meta.vitest
@@ -436,6 +437,9 @@ if (import.meta.vitest) {
436
437
438
for (const { filePath, script, warnings } of testFiles) {
439
test(filePath, () => {
440
+ if (DEBUG_LOG_PROCESSED_SCRIPTS)
441
+ console.debug(`${filePath} processed script:\n${script}`)
442
+
443
expect(warnings.length).toBe(0);
444
(0, eval)(`(${script})`)(import.meta.vitest)
445
})
0 commit comments