Mischa Spiegelmock
05/27/2022, 1:07 AMSyntaxError: The requested module 'ws' does not provide an export named 'WebSocketServer'
Getting this on another project too after updating (1.2.9)Frank
thdxr
05/27/2022, 12:27 PMthdxr
05/27/2022, 12:27 PMMischa Spiegelmock
05/27/2022, 4:12 PMlint-prettier
branch on https://github.com/jetbridge/sst-prisma?
test run failure: https://github.com/jetbridge/sst-prisma/runs/6599666944?check_suite_focus=true
could it be coming from jest? https://serverless-stack.slack.com/archives/C01JVDJQU2C/p1653506100805759?thread_ts=1653503105.857729&cid=C01JVDJQU2Cthdxr
05/27/2022, 4:41 PMthdxr
05/27/2022, 4:41 PMMischa Spiegelmock
05/27/2022, 4:42 PMthdxr
05/27/2022, 4:43 PMthdxr
05/27/2022, 4:52 PMMischa Spiegelmock
05/27/2022, 4:53 PMthdxr
05/27/2022, 4:54 PMthdxr
05/27/2022, 4:54 PMMischa Spiegelmock
05/27/2022, 4:55 PM➜ sst-prisma git:(lint-prettier) pnpm test
> myapp@0.1.0 test /Users/cyber/dev/sst-prisma
> pnpm run jest
> myapp@0.1.0 jest /Users/cyber/dev/sst-prisma
> NODE_OPTIONS='--experimental-vm-modules' node_modules/.bin/jest
(node:17356) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
PASS src/db/client.test.ts
PASS src/api/resolver/greeting.test.ts
FAIL stacks/main.test.ts
● Test suite failed to run
SyntaxError: The requested module 'ws' does not provide an export named 'WebSocketServer'
at Runtime.linkAndEvaluateModule (node_modules/.pnpm/jest-runtime@27.5.1/node_modules/jest-runtime/build/index.js:779:5)
at TestScheduler.scheduleTests (node_modules/.pnpm/@jest+core@27.5.1/node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/.pnpm/@jest+core@27.5.1/node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/.pnpm/@jest+core@27.5.1/node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/.pnpm/@jest+core@27.5.1/node_modules/@jest/core/build/cli/index.js:173:3)
is what i see on my machine and GHAMischa Spiegelmock
05/27/2022, 4:56 PMnpm test
thdxr
05/27/2022, 4:56 PMMischa Spiegelmock
05/27/2022, 4:58 PMthdxr
05/27/2022, 4:58 PMws
and it seems to be using the jest versionMischa Spiegelmock
05/27/2022, 4:58 PMthdxr
05/27/2022, 4:58 PMthdxr
05/27/2022, 4:58 PMMischa Spiegelmock
05/27/2022, 4:58 PMjest-esbuild
Mischa Spiegelmock
05/27/2022, 4:59 PMMischa Spiegelmock
05/27/2022, 5:01 PMthdxr
05/27/2022, 5:06 PMit
test
describe
etcMischa Spiegelmock
05/27/2022, 5:06 PMglobals