Skip to content

Commit 5daa622

Browse files
committed
Re-enable IOPS heavy commands
1 parent dd0cdba commit 5daa622

6 files changed

Lines changed: 33 additions & 36 deletions

File tree

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is only used by jest.runner.config.js, when running the
22
// test-runner. The tool itself uses typescript's compilation instead.
33
module.exports = {
4-
presets: [['@exercism/babel-preset-javascript', { corejs: '3.38' }]],
4+
presets: [['@exercism/babel-preset-javascript', { corejs: '3.43' }]],
55
plugins: [],
66
}

bin/run.sh

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -179,27 +179,27 @@ else
179179
echo "the tests."
180180
echo ""
181181

182-
# COREPACK_ROOT_DIR="${OUTPUT}"
182+
COREPACK_ROOT_DIR="${OUTPUT}"
183183

184-
# echo "✔️ pnpm cache from root to output"
185-
# cd $ROOT && corepack pnpm deploy --filter @exercism/javascript-test-runner --ignore-scripts "${OUTPUT}deploy"
186-
# mv "${OUTPUT}deploy/node_modules" "${OUTPUT}"
187-
# cp -as "${ROOT}/node_modules/" "${OUTPUT}"
188-
# cp -r "${ROOT}/node_modules" "${OUTPUT}"
184+
echo "✔️ pnpm cache from root to output"
185+
cd $ROOT && corepack pnpm deploy --filter @exercism/javascript-test-runner --ignore-scripts "${OUTPUT}deploy"
186+
mv "${OUTPUT}deploy/node_modules" "${OUTPUT}"
187+
cp -as "${ROOT}/node_modules/" "${OUTPUT}"
188+
cp -r "${ROOT}/node_modules" "${OUTPUT}"
189189

190-
# echo "✔️ .pnpm-lock.yaml from root to output"
191-
# cp "${ROOT}/pnpm-lock.yaml" "${OUTPUT}pnpm-lock.yaml"
190+
echo "✔️ .pnpm-lock.yaml from root to output"
191+
cp "${ROOT}/pnpm-lock.yaml" "${OUTPUT}pnpm-lock.yaml"
192192

193-
# echo "✔️ babel.config.js from root to output"
194-
# cp "${ROOT}/babel.config.js" "${OUTPUT}babel.config.js"
193+
echo "✔️ babel.config.js from root to output"
194+
cp "${ROOT}/babel.config.js" "${OUTPUT}babel.config.js"
195195

196-
# echo "✔️ package.json from root to output"
197-
# cp "${ROOT}/package.json" "${OUTPUT}package.json"
196+
echo "✔️ package.json from root to output"
197+
cp "${ROOT}/package.json" "${OUTPUT}package.json"
198198

199-
# echo "✔️ .npmrc from root to output"
200-
# cp "${ROOT}/.npmrc" "${OUTPUT}.npmrc"
199+
echo "✔️ .npmrc from root to output"
200+
cp "${ROOT}/.npmrc" "${OUTPUT}.npmrc"
201201

202-
# echo ""
202+
echo ""
203203
fi
204204

205205
# Put together the path to the test results file
@@ -418,22 +418,17 @@ echo ""
418418
echo "⚙️ corepack pnpm jest --passWithNoTests --detectOpenHandles --rootDir "${OUTPUT}" --testLocationInResults --setupFilesAfterEnv "${SETUP}" --reporters "${REPORTER}" --outputFile="${result_file}" --noStackTrace"
419419
echo ""
420420

421-
cd "${COREPACK_ROOT_DIR}" && corepack pnpm jest --passWithNoTests --detectOpenHandles --rootDir "${OUTPUT}" --testLocationInResults --setupFilesAfterEnv "${SETUP}" --reporters "${REPORTER}" --outputFile="${result_file}" --noStackTrace
422-
423421
cd "${COREPACK_ROOT_DIR}" && corepack pnpm jest \
424-
--bail 1 \
425-
--ci \
426-
--colors \
427-
--config ${CONFIG} \
428-
--noStackTrace \
429-
--outputFile="${result_file}" \
430422
--passWithNoTests \
431-
--reporters "${REPORTER}" \
432-
--rootDir "${OUTPUT}" \
433-
--setupFilesAfterEnv ${SETUP} \
434-
--verbose false \
435423
--detectOpenHandles \
436-
--testLocationInResults
424+
--rootDir "${OUTPUT}" \
425+
--testLocationInResults \
426+
--setupFilesAfterEnv "${SETUP}" \
427+
--reporters "${REPORTER}" \
428+
--outputFile="${result_file}" \
429+
--noStackTrace \
430+
--config ${CONFIG} \
431+
--ci
437432

438433
# Convert exit(1) (jest worked, but there are failing tests) to exit(0)
439434
test_exit=$?

jest.runner.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
verbose: true,
33
modulePathIgnorePatterns: ['package.json'],
44
transform: {
5-
'^.+\\.(cm)?(t|j)sx?$': 'babel-jest',
5+
'^.+\\.[js|cjs|mjs|jsx]$': 'babel-jest',
66
},
77
reporters: [],
88
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@types/node": "^22.15.32",
5050
"@types/shelljs": "^0.8.15",
5151
"eslint": "^9.29.0",
52-
"prettier": "^3.5.3",
52+
"prettier": "^3.6.0",
5353
"rimraf": "^6.0.1",
5454
"typescript": "~5.7.3"
5555
},

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
onlyBuiltDependencies:
2+
- core-js

0 commit comments

Comments
 (0)