Skip to content

Commit

Permalink
hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jan 27, 2023
1 parent ff3fd8f commit 5e9bb35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { NextTestEnv } from './utils/helpers';

describe('Loading the throwing server component', () => {
it('should capture an error event via auto wrapping', async () => {
console.debug('test', process.env.USE_APPDIR);

if (process.env.USE_APPDIR !== 'true') {
return;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/nextjs/test/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ echo "Running integration tests on Node $NODE_VERSION"
mv next.config.js next.config.js.bak

for NEXTJS_VERSION in 10 11 12 13; do
for USE_APPDIR in true false; do
if ([ "$NEXTJS_VERSION" -lt "13" ] || [ "$NODE_MAJOR" -lt "16" ]) && [ "$USE_APPDIR" == true ]; then
for USE_APPDIR in "true" "false"; do
if ([ "$NEXTJS_VERSION" -lt "13" ] || [ "$NODE_MAJOR" -lt "16" ]) && [ "$USE_APPDIR" == "true" ]; then
# App dir doesn not work on Next.js < 13 or Node.js < 16
continue
fi
Expand Down Expand Up @@ -127,7 +127,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
elif [ "$NEXTJS_VERSION" -eq "12" ]; then
sed "s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5/g" <next12.config.template >next.config.js
elif [ "$NEXTJS_VERSION" -eq "13" ]; then
if [ "$USE_APPDIR" == true ]; then
if [ "$USE_APPDIR" == "true" ]; then
sed "s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5/g" <next13.appdir.config.template >next.config.js
else
sed "s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5/g" <next13.config.template >next.config.js
Expand All @@ -147,7 +147,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
# we keep this updated as we run the tests, so that if it's ever non-zero, we can bail
EXIT_CODE=0

if [ "$USE_APPDIR" == true ]; then
if [ "$USE_APPDIR" == "true" ]; then
echo "Skipping server tests for appdir"
else
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Running server tests with options: $args"
Expand Down

0 comments on commit 5e9bb35

Please sign in to comment.