GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #1613 from callmehiphop/test-docs-npm-script · googleapis/google-cloud-node@a6410a2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/json/master/speech
    • .gitkeep
  • package.json
  • scripts
    • helpers.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/json/master/speech/.gitkeep‎

Copy file name to clipboardExpand all lines: docs/json/master/speech/.gitkeep
Whitespace-only changes.
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
"docs": "node ./scripts/docs/packages.js",
3232
"bundle": "node ./scripts/docs/bundle.js",
3333
"lint": "jshint scripts/ packages/ system-test/ test/ && jscs packages/ system-test/ test/",
34-
"test": "npm run docs && mocha --timeout 5000 --bail test/docs.js packages/*/test/*.js",
34+
"test": "npm run docs && npm run snippet-test && npm run unit-test",
35+
"unit-test": "mocha --timeout 5000 --bail packages/*/test/*.js",
36+
"snippet-test": "mocha --timeout 5000 --bail test/docs.js",
3537
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
3638
"cover": "istanbul cover _mocha --report lcovonly -x 'packages/*/src/v*/*.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
3739
"coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
Collapse file

‎scripts/helpers.js‎

Copy file name to clipboardExpand all lines: scripts/helpers.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Module.prototype.runUnitTests = function() {
178178
*/
179179
Module.prototype.runSnippetTests = function() {
180180
process.env.TEST_MODULE = this.name;
181-
run('mocha test/docs.js', { cwd: ROOT_DIR });
181+
run('npm run snippet-test', { cwd: ROOT_DIR });
182182
delete process.env.TEST_MODULE;
183183
};
184184

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.