Skip to content

Commit

Permalink
Fix some test cases.
Browse files Browse the repository at this point in the history
- Don't output __tests__ which jest thinks are cases
- properly import telemetry.
  • Loading branch information
Eyas committed Mar 25, 2020
1 parent e624f1e commit 7de0f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/gatsby-telemetry/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "../../tsconfig.json"
"extends": "../../tsconfig.json",
"exclude": ["src/__tests__", "lib/"]
}
4 changes: 2 additions & 2 deletions packages/gatsby/src/commands/build-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Bluebird from "bluebird"
import fs from "fs-extra"
import reporter from "gatsby-cli/lib/reporter"
import { createErrorFromString } from "gatsby-cli/lib/reporter/errors"
import telemetry from "gatsby-telemetry"
import { addSiteMeasurement } from "gatsby-telemetry"
import { chunk } from "lodash"
import webpack from "webpack"

Expand Down Expand Up @@ -98,7 +98,7 @@ const doBuildPages = async (
activity: IActivity,
workerPool: IWorkerPool
): Promise<void> => {
telemetry.addSiteMeasurement(`BUILD_END`, {
addSiteMeasurement(`BUILD_END`, {
pagesCount: pagePaths.length,
})

Expand Down

0 comments on commit 7de0f30

Please sign in to comment.