pulumi/pkg/codegen/nodejs
Fraser Waters cf5b4a2790
Use `assert.NoError` rather than `assert.Nil` (#14233)
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->
Likewise `require.NoError` instead of `require.Nil`, and `assert.Error`
rather than `assert.NotNil`.

The error variants of these functions print the errors nicer for test
failures using `Error()` rather than `GoString()`.

For bail errors this is _much_ better than the `result.Result` days
where we now get errors like:
```
Error:      	Received unexpected error:
            	BAIL: inner error
```
instead of:
```
Error:      	Expected nil, but got: &simpleResult{}
```

Also print the bail error in `TestPlan.Run` so we can see the
description of it.
2023-10-13 09:46:07 +00:00
..
gen_program_test Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
tstypes all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
doc.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
doc_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen.go Remove NodeJS and Python install scripts (#13800) 2023-08-30 08:05:34 +00:00
gen_fileinfo.go [codegen/node] Implement support for lazy-loaded Node modules (#10538) 2022-09-01 18:42:44 -04:00
gen_intrinsics.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
gen_lazyloads.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
gen_lazyloads_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen_program.go Add matrix testing (#13705) 2023-09-13 15:17:46 +00:00
gen_program_expressions.go Fix nodejs enum programgen to use package identifier over PackageName. 2023-07-24 14:46:34 -07:00
gen_program_lower.go Fixes parseProxyApply to handle nested outputs within index expressions 2023-08-07 21:08:54 +02:00
gen_program_test.go Fix nodejs enum programgen to use package identifier over PackageName. 2023-07-24 14:46:34 -07:00
gen_program_utils.go throw/raise an error when input list does not have a single element 2023-05-30 13:38:01 +02:00
gen_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
importer.go Remove 'pluginVersion' and 'pluginName' from nodejs schema options. 2023-08-08 12:19:06 +01:00
test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
utilities.go pkg/codegen/nodejs: Prefer contract.Assertf over Assert 2023-03-01 13:22:32 -08:00
utilities_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00