Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Aug 10, 2022
1 parent 8484d9b commit b1af0a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ module.exports = {
},
snapshotSerializers: [`jest-serializer-path`],
collectCoverageFrom: coverageDirs,
reporters: [`default`].concat(useCoverage ? `jest-junit` : []),
reporters: process.env.CI
? [[`jest-silent-reporter`, { useDots: true, showPaths: true }]].concat(
useCoverage ? `jest-junit` : []
)
: [`default`].concat(useCoverage ? `jest-junit` : []),
moduleFileExtensions: [`js`, `jsx`, `ts`, `tsx`, `json`],
setupFiles: [`<rootDir>/.jestSetup.js`],
setupFilesAfterEnv: [`jest-extended`],
Expand Down
3 changes: 0 additions & 3 deletions packages/gatsby/src/utils/cache-lmdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ export default class GatsbyCacheLmdb {
return rootDb
}

console.trace(`open ${dbPath}`)

rootDb = open({
name: `root`,
path: dbPath,
Expand Down Expand Up @@ -98,7 +96,6 @@ export default class GatsbyCacheLmdb {
export async function resetCache(): Promise<void> {
const store = getAlreadyOpenedStore()
if (store) {
console.trace(`reset / close ${dbPath}`)
await store.close()
globalThis.__GATSBY_OPEN_ROOT_LMDBS.delete(dbPath)
}
Expand Down

0 comments on commit b1af0a8

Please sign in to comment.