Loads p5.min.js
for CodeFrame
iframes using manually created script
#1219
Annotations
3 errors
Test:
src/components/CodeEmbed/frame.tsx#L112
TypeError: Failed to fetch
❯ createNetworkError node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:206:24
❯ globalThis.fetch node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:116:31
❯ src/components/CodeEmbed/frame.tsx:112:28
This error originated in "test/components/CodeEmbed.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Caused by: Error: ENOENT: no such file or directory, open './assets/p5.min.js'
❯ Object.openSync node:fs:596:3
❯ readFileSync node:fs:464:35
❯ test/mocks/server.ts:16:7
❯ node_modules/msw/src/core/handlers/RequestHandler.ts:304:55
❯ HttpHandler.run node_modules/msw/src/core/handlers/RequestHandler.ts:271:7
❯ executeHandlers node_modules/msw/src/core/utils/executeHandlers.ts:36:14
❯ until node_modules/@open-draft/until/src/until.ts:23:18
❯ handleRequest node_modules/msw/src/core/utils/handleRequest.ts:63:24
❯ _Emitter.<anonymous> node_modules/msw/src/node/SetupServerCommonApi.ts:56:24
❯ emitAsync node_modules/@mswjs/interceptors/src/utils/emitAsync.ts:23:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, syscall: 'open', code: 'ENOENT', path: './assets/p5.min.js' }
|
Test:
src/components/CodeEmbed/frame.tsx#L112
TypeError: Failed to fetch
❯ createNetworkError node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:206:24
❯ globalThis.fetch node_modules/@mswjs/interceptors/src/interceptors/fetch/index.ts:116:31
❯ src/components/CodeEmbed/frame.tsx:112:28
This error originated in "test/components/CodeEmbed.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Caused by: Caused by: Error: ENOENT: no such file or directory, open './assets/p5.min.js'
❯ Object.openSync node:fs:596:3
❯ readFileSync node:fs:464:35
❯ test/mocks/server.ts:16:7
❯ node_modules/msw/src/core/handlers/RequestHandler.ts:304:55
❯ HttpHandler.run node_modules/msw/src/core/handlers/RequestHandler.ts:271:7
❯ executeHandlers node_modules/msw/src/core/utils/executeHandlers.ts:36:14
❯ until node_modules/@open-draft/until/src/until.ts:23:18
❯ handleRequest node_modules/msw/src/core/utils/handleRequest.ts:63:24
❯ _Emitter.<anonymous> node_modules/msw/src/node/SetupServerCommonApi.ts:56:24
❯ emitAsync node_modules/@mswjs/interceptors/src/utils/emitAsync.ts:23:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, syscall: 'open', code: 'ENOENT', path: './assets/p5.min.js' }
|
Test
Process completed with exit code 1.
|
Loading