Skip to content

Commit

Permalink
fixup! re-unbundle ses-ava with prepare-endo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 12, 2024
1 parent c935599 commit 92253c1
Show file tree
Hide file tree
Showing 77 changed files with 86 additions and 81 deletions.
3 changes: 2 additions & 1 deletion packages/bundle-source/test/test-bigint-transform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check
import url from 'url';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import bundleSource from '../src/index.js';

test('bigint transform', async t => {
Expand Down
3 changes: 2 additions & 1 deletion packages/bundle-source/test/test-circular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import url from 'url';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import bundleSource from '../src/index.js';

function evaluate(src, endowments) {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-comment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import url from 'url';
import { decodeBase64 } from '@endo/base64';
Expand Down
3 changes: 2 additions & 1 deletion packages/bundle-source/test/test-explicit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { rollup } from 'rollup';
import { resolve as pathResolve } from 'path';
import resolvePlugin from '@rollup/plugin-node-resolve';
import url from 'url';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import bundleSource from '../src/index.js';

test('explicit authority', async t => {
Expand Down
3 changes: 2 additions & 1 deletion packages/bundle-source/test/test-external-fs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import url from 'url';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import bundleSource from '../src/index.js';

function evaluate(src, endowments) {
Expand Down
3 changes: 2 additions & 1 deletion packages/bundle-source/test/test-integrity.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import url from 'url';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import bundleSource from '../src/index.js';

test('integrity check', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-tool-command.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import url from 'url';
import { execava } from './execava.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-tool-library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global process */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import url from 'url';
import { makeNodeBundleCache } from '../cache.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-crosstalk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/marshal';
import { makeLoopback, E } from '../src/loopback.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-disco.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/marshal';
import { E, makeCapTP } from '../src/captp.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-export-hook.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
/* global globalThis */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/marshal';
import { E, makeLoopback } from '../src/loopback.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-finalizing-map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { detectEngineGC } from './engine-gc.js';
import { makeGcAndFinalize } from './gc-and-finalize.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-gc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/marshal';
import { E, makeLoopback } from '../src/loopback.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-loopback.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global setTimeout */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/marshal';
import { E, makeLoopback } from '../src/loopback.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/captp/test/test-trap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Worker } from 'worker_threads';
import url from 'url';
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-apply-labeling-error.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Fail } from '@endo/errors';
import { applyLabelingError } from '../apply-labeling-error.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-from-unique-entries.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { fromUniqueEntries } from '../from-unique-entries.js';

test('test fromUniqueEntries', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-ident-checker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { identChecker } from '../ident-checker.js';

test('test identChecker', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-list-difference.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { listDifference } from '../list-difference.js';

test('test listDifference', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-make-array-iterator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { makeArrayIterator } from '../make-array-iterator.js';

// Also serves as an adequate test of make-iterator.js
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-object-map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { objectMap } from '../object-map.js';

test('test objectMap', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-object-meta-assign.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { objectMetaAssign } from '../object-meta-assign.js';

test('test objectMetaAssign', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-object-meta-map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { objectMetaMap } from '../object-meta-map.js';

const { getOwnPropertyDescriptors, getPrototypeOf } = Object;
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/test-throw-labeled.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';
import { throwLabeled } from '../throw-labeled.js';

test('test throwLabeled', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/test/test-pubsub.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
/* eslint-disable no-await-in-loop */

import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { makePromiseKit } from '@endo/promise-kit';
import { makeChangeTopic } from '../src/pubsub.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/test/test-serial-jobs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global setTimeout */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { makeSerialJobs } from '../src/serial-jobs.js';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path';
import fs from 'node:fs/promises';
import url from 'url';

import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

/**
* Path to fixture's bundled source code
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/prepare-test-env-ava-label-instances.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global globalThis */

import { environmentOptionsListHas } from '@endo/env-options';
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

// TODO consider adding env option setting APIs to @endo/env-options
// TODO should set up globalThis.process.env if absent
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-amplify-heap-class-kits.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// modeled on test-heap-classes.js
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { M } from '@endo/patterns';
import { defineExoClass, defineExoClassKit } from '../src/exo-makers.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-exo-class-js-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-classes-per-file */
/* eslint-disable class-methods-use-this */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf } from '@endo/pass-style';
import { M, getInterfaceGuardPayload } from '@endo/patterns';
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-exo-wobbly-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/* eslint-disable class-methods-use-this */
/* eslint-disable max-classes-per-file */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { getMethodNames } from '@endo/eventual-send/utils.js';
import { passStyleOf, Far, GET_METHOD_NAMES } from '@endo/pass-style';
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-heap-classes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { getInterfaceMethodKeys, M } from '@endo/patterns';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-is-instance-heap-class-kits.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// modeled on test-heap-classes.js

import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { M } from '@endo/patterns';
import { defineExoClass, defineExoClassKit } from '../src/exo-makers.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-legacy-guard-tolerance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf } from '@endo/pass-style';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-non-enumerable-methods.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { objectMetaMap } from '@endo/common/object-meta-map.js';
import { getInterfaceMethodKeys, M } from '@endo/patterns';
Expand Down
2 changes: 1 addition & 1 deletion packages/far/test/test-e.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-classes-per-file */
/* eslint-disable class-methods-use-this */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { E } from '../src/index.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/far/test/test-marshal-far-function.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check

import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far, getInterfaceOf, passStyleOf } from '../src/index.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/far/test/test-marshal-far-obj.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { q } from '@endo/errors';

Expand Down
2 changes: 1 addition & 1 deletion packages/import-bundle/test/test-compartment-wrapper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="ses"/>
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { wrapInescapableCompartment } from '../src/compartment-wrapper.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/import-bundle/test/test-import-bundle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { encodeBase64 } from '@endo/base64';
import fs from 'fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/lp32/test/test-lp32.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global setTimeout */
// @ts-check
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { makePipe } from '@endo/stream';
import { makeLp32Reader } from '../reader.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-dot-membrane.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/pass-style';
import { makeDotMembraneKit } from '../src/dot-membrane.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-encode-slot-in-promise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-encodePassable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-nocheck
/* eslint-disable no-bitwise, @endo/restrict-comparison-operands */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { fc } from '@fast-check/ava';
import { Remotable } from '@endo/pass-style';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-capdata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf, Far } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-far-function.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { getInterfaceOf, passStyleOf, Far } from '@endo/pass-style';

Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-far-obj.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { q } from '@endo/errors';
import { passStyleOf, Remotable, Far, getInterfaceOf } from '@endo/pass-style';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-justin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Remotable, makeTagged } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-serialization.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { makeMarshal } from '../src/marshal.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-smallcaps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far, makeTagged, passStyleOf } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-stringify.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/pass-style';
import { stringify, parse } from '../src/marshal-stringify.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-marshal-testing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf, Remotable } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/test-rankOrder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

// eslint-disable-next-line import/no-extraneous-dependencies
import { fc } from '@fast-check/ava';
Expand Down
2 changes: 1 addition & 1 deletion packages/memoize/test/test-memoize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { memoize } from '../src/memoize.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/test-extended-errors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable max-classes-per-file */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf } from '../src/passStyleOf.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/test-far-class-instances.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable class-methods-use-this */
/* eslint-disable max-classes-per-file */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { getMethodNames } from '@endo/eventual-send/utils.js';
import { passStyleOf } from '../src/passStyleOf.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/test-far-wobbly-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* eslint-disable class-methods-use-this */
/* eslint-disable max-classes-per-file */
import test from '@endo/ses-ava';
import test from '@endo/ses-ava/prepare-endo.js';

import { getMethodNames } from '@endo/eventual-send/utils.js';
import { passStyleOf } from '../src/passStyleOf.js';
Expand Down
Loading

0 comments on commit 92253c1

Please sign in to comment.