pulumi/sdk/nodejs/tsconfig.json
Joe Duffy 644d5dc916
Enable unit testing for Pulumi programs (#2638)
* Enable unit testing for Pulumi programs

This change enables rudimentary unit testing of your Pulumi programs, by introducing a `PULUMI_TEST_MODE` envvar that, when set, allows programs to run without a CLI. That includes

* Just being able to import your Pulumi modules, and test ordinary functions -- which otherwise would have often accidentally triggered the "Not Running in a CLI" error message
* Being able to verify a subset of resource properties and shapes, with the caveat that outputs are not included, due to the fact that this is a perpetual "dry run" without any engine operations occurring

In principle, this also means you can attach a debugger and step through your code.

* Finish the unit testing features

This change

1) Incorporates CR feedback, namely requiring that test mode be
   explicitly enabled for any of this to work.

2) Implements Python support for the same capabilities.

3) Includes tests for both JavaScript and Python SDKs.

* Add a note on unit testing to the CHANGELOG

* Use Node 8 friendly assert API

* Embellish the CHANGELOG entry a bit
2019-04-16 22:20:01 -07:00

71 lines
1.8 KiB
JSON

{
"compilerOptions": {
"outDir": "bin",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"sourceMap": false,
"stripInternal": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
},
"files": [
"index.ts",
"config.ts",
"errors.ts",
"metadata.ts",
"output.ts",
"resource.ts",
"stackReference.ts",
"utils.ts",
"version.ts",
"asset/index.ts",
"asset/asset.ts",
"asset/archive.ts",
"dynamic/index.ts",
"iterable/index.ts",
"log/index.ts",
"runtime/index.ts",
"runtime/closure/v8.ts",
"runtime/closure/createClosure.ts",
"runtime/closure/parseFunction.ts",
"runtime/closure/serializeClosure.ts",
"runtime/closure/rewriteSuper.ts",
"runtime/config.ts",
"runtime/debuggable.ts",
"runtime/invoke.ts",
"runtime/resource.ts",
"runtime/rpc.ts",
"runtime/settings.ts",
"runtime/stack.ts",
"cmd/dynamic-provider/index.ts",
"cmd/run/index.ts",
"cmd/run/run.ts",
"tests/config.spec.ts",
"tests/init.spec.ts",
"tests/iterable.spec.ts",
"tests/output.spec.ts",
"tests/testmode.spec.ts",
"tests/unwrap.spec.ts",
"tests/util.ts",
"tests/runtime/closureLoader.spec.ts",
"tests/runtime/tsClosureCases.ts",
"tests/runtime/props.spec.ts",
"tests/runtime/langhost/run.spec.ts"
]
}