update tests to check the responses #31
Annotations
3 errors
apps/next/__tests__/build.test.ts#L6
Error: Command failed: yarn build
No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?
⨯ ESLint: Invalid Options: - Unknown options: useEslintrc, extensions - 'extensions' has been removed.
PageNotFoundError: Cannot find module for page: /user/[id]
at getPagePath (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/require.js:94:15)
at requirePage (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/require.js:99:22)
at /home/runner/work/starter-free/starter-free/node_modules/next/dist/server/load-components.js:98:84
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async loadComponentsImpl (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/load-components.js:98:26)
at async /home/runner/work/starter-free/starter-free/node_modules/next/dist/build/utils.js:1116:32
at async Span.traceAsyncFn (/home/runner/work/starter-free/starter-free/node_modules/next/dist/trace/trace.js:154:20) {
code: 'ENOENT'
}
> Build error occurred
Error: Failed to collect page data for /user/[id]
at /home/runner/work/starter-free/starter-free/node_modules/next/dist/build/utils.js:1268:15
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
type: 'Error'
}
❯ getPagePath node_modules/next/dist/server/require.js:94:15
❯ requirePage node_modules/next/dist/server/require.js:99:22
❯ node_modules/next/dist/server/load-components.js:98:84
❯ loadComponentsImpl node_modules/next/dist/server/load-components.js:98:26
❯ node_modules/next/dist/build/utils.js:1116:32
❯ node_modules/next/dist/build/utils.js:1268:15
❯ apps/next/__tests__/build.test.ts:6:23
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, 'built @my/config in 37 ms\nbuilt @my/ui in 189 ms\nDone in 1s 396ms\n ▲ Next.js 14.2.13\n - Environments: .env\n - Experiments (use with caution):\n · scrollRestoration\n\n Creating an optimized production build ...\n tamagui: skipping ./NativeModule tamagui.dev/docs/intro/errors#warning-001\n tamagui: skipping ./SharedObject tamagui.dev/docs/intro/errors#warning-001\n ✓ Compiled successfully\n Skipping validation of types\n Linting ...\n Collecting page data ...\n', 'No native ExponentConstants module found, are you sure the expo-constants\'s module is linked properly?\n ⨯ ESLint: Invalid Options: - Unknown options: useEslintrc, extensions - \'extensions\' has been removed.\nPageNotFoundError: Cannot find module for page: /user/[id]\n at getPagePath (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/require.js:94:15)\n at requirePage (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/require.js:99:22)\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/server/load-components.js:98:84\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async loadComponentsImpl (/home/runner/work/starter-free/starter-free/node_modules/next/dist/server/load-components.js:98:26)\n at async /home/runner/work/starter-free/starter-free/node_modules/next/dist/build/utils.js:1116:32\n at async Span.traceAsyncFn (/home/runner/work/starter-free/starter-free/node_modules/next/dist/trace/trace.js:154:20) {\n code: \'ENOENT\'\n}\n\n> Build error occurred\nError: Failed to collect page data for /user/[id]\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/build/utils.js:1268:15\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {\n type: \'Error\'\n}\n' ], pid: 2158, stdout: 'built @my/config in 37 ms\nbuilt @my/ui in 189 ms\nDone in 1s 396ms\n ▲ Next.js 14.2.13\n - Environments: .env\n - Experiments (use with caution):\n · scrollRestoration\n\n Creating an optimized production build ...\n tamagui: skipping ./NativeModule tamagui.dev/docs/intro/errors#warning-001\n tamagui: skipping ./SharedObject tamagui.dev/docs/intro/err
|
apps/next/__tests__/dev.test.ts#L52
AssertionError: expected '<!DOCTYPE html><html><head><style dat…' to contain 'Welcome to Tamagui'
Expected: "Welcome to Tamagui"
Received: "<!DOCTYPE html><html><head><style data-next-hide-fouc="true">body{display:none}</style><noscript data-next-hide-fouc="true"><style>body{display:block}</style></noscript><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills.js"></script><script src="/_next/static/chunks/fallback/webpack.js" defer=""></script><script src="/_next/static/chunks/fallback/main.js" defer=""></script><script src="/_next/static/chunks/fallback/pages/_app.js" defer=""></script><script src="/_next/static/chunks/fallback/pages/_error.js" defer=""></script><noscript id="__next_css__DO_NOT_USE__"></noscript></head><body><div id="__next"></div><script src="/_next/static/chunks/fallback/react-refresh.js"></script><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"development","isFallback":false,"err":{"name":"ModuleBuildError","source":"server","message":"Module build failed (from ../../node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js):\nError: You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started\n at Object.pitch (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js:1:5197)","stack":"ModuleBuildError: Module build failed (from ../../node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js):\nError: You forgot to add 'mini-css-extract-plugin' plugin (i.e. `{ plugins: [new MiniCssExtractPlugin()] }`), please read https://github.com/webpack-contrib/mini-css-extract-plugin#getting-started\n at Object.pitch (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js:1:5197)\n at processResult (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/webpack/bundle5.js:28:400590)\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/webpack/bundle5.js:28:402302\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:8645\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5019\n at r.callback (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4039)\n at Object.pitch (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js:1:5195)\n at LOADER_EXECUTION (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4134)\n at runSyncOrAsync (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4145)\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4926\n at handleResult (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:1424)\n at loadLoader (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:963)\n at iteratePitchingLoaders (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4794)\n at iteratePitchingLoaders (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4764)\n at /home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4896\n at handleResult (/home/runner/work/starter-free/starter-free/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:142
|
|
This job failed
Loading