mammoth-art-6111
03/16/2022, 3:10 PMsetMocks
setMocks
call causes the errors to appear in their correct place (as long as it's not actually creating pulumi resources, in which case you get the pulumi context error)little-cartoon-10569
03/16/2022, 8:14 PMpulumi.log()
when you can, since then Pulumi controls when the text is sent to the console.mammoth-art-6111
03/16/2022, 8:25 PMimport * as pulumi from '@pulumi/pulumi'
little-cartoon-10569
03/16/2022, 8:29 PMmammoth-art-6111
03/16/2022, 8:30 PMlittle-cartoon-10569
03/16/2022, 8:31 PMmammoth-art-6111
03/16/2022, 8:32 PMnpx mocha -r ts-node/register -r tsconfig-paths/register {test_glob}
little-cartoon-10569
03/16/2022, 8:43 PMmammoth-art-6111
03/16/2022, 8:49 PM-r ts-node/register
at leastlittle-cartoon-10569
03/16/2022, 9:22 PM"test": "env TS_NODE_PROJECT=\"tsconfig.test.json\" node --trace-warnings --unhandled-rejections=strict node_modules/mocha/bin/_mocha --spec \"./**/*.spec.ts\"",
{
"parallel": false,
"extension": [
"ts"
],
"require": [
"ts-node/register"
]
}
Forgot about that.mammoth-art-6111
03/17/2022, 2:23 PMlittle-cartoon-10569
03/21/2022, 8:29 PM