File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,22 @@ All samples must have tests. We use `mocha` as testing framework. The
48
48
executes the ` mocha ` tests via ` npm test `
49
49
([ example] ( https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/batch/package.json#L13 ) ).
50
50
51
+ ### Third party libraries
52
+
53
+ Contributors are encouraged to use vanilla Node.js as much as pragmatically
54
+ possible to standardize writing, reviewing, and maintaining samples and their
55
+ tests, ideally reducing dependencies on third party libraries.
56
+
57
+ For tests, using the standard
58
+ library [ assert] ( https://nodejs.org/docs/latest-v18.x/api/assert.html ) is
59
+ preferred.
60
+
61
+ If you want to use a third party package, help us to understand if you have
62
+ requirements not fulfilled by core libraries in the description of your pull
63
+ request.
64
+
65
+ ### CI testing
66
+
51
67
For new samples, a GitHub Actions workflow should be created to run your tests
52
68
on the CI system:
53
69
You can’t perform that action at this time.
0 commit comments