Skip to content

Commit 60b1673

Browse files
committed
Trying to build test files for aws-cdk-lib
1 parent b534c45 commit 60b1673

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ done
4747

4848
export NODE_OPTIONS="--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"
4949

50+
if $ci; then
51+
export CI=true
52+
fi
53+
5054
# Temporary log memory for long builds (this may mess with tests that check stderr)
5155
# export NODE_OPTIONS="-r $PWD/scripts/log-memory.js ${NODE_OPTIONS:-}"
5256

packages/aws-cdk-lib/jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
const baseConfig = require('@aws-cdk/cdk-build-tools/config/jest.config');
22

3+
const ext = require('@aws-cdk/cdk-build-tools/config/ext.js');
4+
35
/** @type {import('ts-jest').JestConfigWithTsJest} */
46
module.exports = {
57
...baseConfig,
68

79
// Different than usual
810
testMatch: [
9-
'<rootDir>/**/test/**/?(*.)+(test).ts',
11+
`<rootDir>/**/test/**/?(*.)+(test).${ext}`,
1012
],
1113
coveragePathIgnorePatterns: ['\\.generated\\.[jt]s$', '<rootDir>/.*/test/', '.warnings.jsii.js$', '/node_modules/'],
1214

packages/aws-cdk-lib/tsconfig.dev.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@
3030
"tsBuildInfoFile": "tsconfig.dev.tsbuildinfo"
3131
},
3232
"include": [
33-
"**/*.ts"
33+
"**/test/**/*.ts"
3434
],
3535
"exclude": [
3636
"node_modules",
3737
".types-compat",
3838
"**/*.d.ts"
39+
],
40+
"references": [
41+
{
42+
"path": "."
43+
}
3944
]
4045
}

0 commit comments

Comments
 (0)