fix: tests use debug settings
MODIFY
packages/check-bundle/test/test-check-bundle.js
packages/check-bundle/test/test-check-bundle.js
// @ts-check
import '@endo/init/pre-bundle-source.js';
-import '@endo/init';
+import '@endo/init/debug.js';
import test from 'ava';
import * as fs from 'fs';
import * as url from 'url';
@@ -76,7 +76,7 @@ test('bundle and check endo zip base64 package absent hash', async t => {
checkBundle(lightBundle, computeSha512, 'fixture/main.js'),
{
message:
- "checkBundle cannot bundle without the property 'endoZipBase64Sha512', which must be a string, got (a string)",
+ 'checkBundle cannot bundle without the property \'endoZipBase64Sha512\', which must be a string, got "undefined"',
},
);
});

MODIFY
packages/init/test/test-async_hooks.js
packages/init/test/test-async_hooks.js
// Use a package self-reference to go through the "exports" resolution
// eslint-disable-next-line import/no-extraneous-dependencies
-import '@endo/init';
+import '@endo/init/debug.js';
import test from 'ava';
import { createHook } from 'async_hooks';
import { setTimeout } from 'timers';

MODIFY
packages/lp32/test/test-lp32.js
packages/lp32/test/test-lp32.js
/* global setTimeout */
// @ts-check
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

MODIFY
packages/netstring/test/test-netstring.js
packages/netstring/test/test-netstring.js
/* global setTimeout */
// @ts-check
-import '@endo/init';
+import '@endo/init/debug.js';
import test from 'ava';
import { makePipe } from '@endo/stream';

MODIFY
packages/stream-node/test/test-stream-node.js
packages/stream-node/test/test-stream-node.js
// @ts-check
/* global setTimeout */
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

MODIFY
packages/stream/test/test-map.js
packages/stream/test/test-map.js
// @ts-check
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

MODIFY
packages/stream/test/test-prime.js
packages/stream/test/test-prime.js
// @ts-check
/* eslint-disable require-yield, no-empty-function */
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

MODIFY
packages/stream/test/test-pump.js
packages/stream/test/test-pump.js
// @ts-check
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

MODIFY
packages/stream/test/test-stream.js
packages/stream/test/test-stream.js
// @ts-check
-import '@endo/init';
+import '@endo/init/debug.js';
import rawTest from 'ava';
import { wrapTest } from '@endo/ses-ava';

fix: tests use debug settings (#1213)