# Upstream's suite runs on jest and needs the full devDependency tree plus a
# jsdom environment and ProseMirror's test-builder helpers; none of that is
# part of a binary build, so the built module is smoke-tested by loading it
# instead.  Both published entry points are exercised, since they come from
# two separate esbuild invocations.
test -f dist/index.js
test -f dist/index.cjs
test -f dist/index.d.ts
node -e 'require("./dist/index.cjs")'
node --input-type=module -e 'import("./dist/index.js")'
