Skip to content

Commit 5e9bb35

Browse files
committed
hmmm
1 parent ff3fd8f commit 5e9bb35

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/nextjs/test/integration/test/server/autoWrappedServerComponent.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { NextTestEnv } from './utils/helpers';
22

33
describe('Loading the throwing server component', () => {
44
it('should capture an error event via auto wrapping', async () => {
5+
console.debug('test', process.env.USE_APPDIR);
6+
57
if (process.env.USE_APPDIR !== 'true') {
68
return;
79
}

packages/nextjs/test/run-integration-tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ echo "Running integration tests on Node $NODE_VERSION"
3232
mv next.config.js next.config.js.bak
3333

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

150-
if [ "$USE_APPDIR" == true ]; then
150+
if [ "$USE_APPDIR" == "true" ]; then
151151
echo "Skipping server tests for appdir"
152152
else
153153
echo "[nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION] Running server tests with options: $args"

0 commit comments

Comments
 (0)