Skip to content

Merge pull request #20 from react18-tools/rewrite #19

Merge pull request #20 from react18-tools/rewrite

Merge pull request #20 from react18-tools/rewrite #19

Triggered via push May 8, 2024 12:17
Status Failure
Total duration 35s
Artifacts

publish.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors
__tests__/dist.test.ts > Test plugin with default options in example build with tsup > "use client"; directive should be present in client components: lib/__tests__/dist.test.ts#L13
Error: ENOENT: no such file or directory, open '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/client/index.js' ❯ Object.readFileSync node:fs:457:20 ❯ __tests__/dist.test.ts:13:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/client/index.js' }
__tests__/dist.test.ts > Test plugin with default options in example build with tsup > "use client"; directive should not be present in server components: lib/__tests__/dist.test.ts#L18
Error: ENOENT: no such file or directory, open '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/server/index.js' ❯ Object.readFileSync node:fs:457:20 ❯ __tests__/dist.test.ts:18:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/server/index.js' }
__tests__/dist.test.ts > Test plugin with default options in example build with tsup > should not contain data-testid: lib/__tests__/dist.test.ts#L23
Error: ENOENT: no such file or directory, open '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/client/index.js' ❯ Object.readFileSync node:fs:457:20 ❯ __tests__/dist.test.ts:23:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/packages/shared/dist/client/index.js' }
publish
esbuild-plugin-react18#test: command (/home/runner/work/esbuild-plugin-react18/esbuild-plugin-react18/lib) /opt/hostedtoolcache/node/20.12.2/x64/bin/pnpm run test exited (1)
publish
Process completed with exit code 1.