diff --git a/packages/ses/package.json b/packages/ses/package.json index 4d6d557f57..b825381fe5 100644 --- a/packages/ses/package.json +++ b/packages/ses/package.json @@ -46,6 +46,7 @@ "lint:js": "eslint '**/*.js'", "lint-fix": "eslint --fix '**/*.js'", "test": "yarn build && yarn ava", + "test:xs": "ava-xs", "qt": "yarn ava", "test:platform-compatability": "node test/package/test.cjs", "build": "rollup --config rollup.config.js", @@ -74,6 +75,63 @@ ], "require": [] }, + "ava-xs": { + "exclude": [ + "# SIGSEGV https://github.com/Moddable-OpenSource/moddable/issues/627", + "test-global-object-mutability.js", + "# Function constructor bug https://github.com/Moddable-OpenSource/moddable/issues/623", + "test/test-break-function-eval.js", + "# Symbol toString https://github.com/Moddable-OpenSource/moddable/issues/621", + "test/error/test-assert-log.js", + "# before lockdown, compartments have the same privileged Function.prototype.constructor as the start compartment", + "test/test-lockdown.js", + "# e.stack is undefined; no captureStackTrace", + "test/test-v8-callsite-properties.js", + "test/error/test-tame-v8-error.js", + "test/error/test-tame-v8-error-unsafe.js", + "test-tame-v8-error-unit.js", + "# threw: get StaticModuleRecord: undefined variable", + "test/test-module-static-record.js", + "Compartment instance missing some properties with only ses/lockdown", + "test/test-module-compartment-instance.js", + "test/test-module-compartment-prototype.js", + "# import.meta.url requires enabling the parser plugin: 'importMeta'", + "test/test-package.js", + "# ava-xs console isn't like ava console", + "test/error/test-tame-console-unsafe-unsafeError-unfilteredError.js", + "test/error/test-tame-console-unsafe-unsafeError.js", + "test/error/test-tame-console-unsafeError.js", + "test/error/test-tame-console.js", + "test/error/test-tame-console-unfilteredError.js", + "# SES_IMPORT_REJECTED", + "test/test-compartment-transforms.js", + "test/test-evade-import-expression.js", + "test/test-reject-import-expression.js", + "# SES_HTML_COMMENT_REJECTED", + "test/test-evade-html-comment.js", + "test/test-reject-html-comment.js", + "# SES_EVAL_REJECTED", + "test/test-evaluate.js", + "test/test-global-object.js", + "test/test-lockdown-options.js", + "test/test-make-eval-function.js", + "test/test-make-evaluate-factory.js", + "test/test-make-function-constructor.js", + "test/test-reject-direct-eval.js", + "test/test-scope-handler.js", + "test/test-suppress-direct-eval.js", + "test/test-transforms.js", + "test/test-whitelist-intrinsics.js", + "# SKIP module-shim, babel", + "test/test-global-lexicals-modules.js", + "test/test-import-cjs.js", + "test/test-import-gauntlet.js", + "test/test-import-stack-traces.js", + "test/test-import.js", + "test/test-node.js", + "test/test-static-module-record-unit.js" + ] + }, "eslintConfig": { "extends": [ "@agoric" @@ -93,4 +151,4 @@ "ses.js", "src" ] -} +} \ No newline at end of file