Skip to content

Commit

Permalink
run error serializer check only before release (#4130)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jul 11, 2022
1 parent d45bcb6 commit fbc4450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -17,7 +17,7 @@
"lint:markdown": "markdownlint-cli2",
"lint:standard": "standard | snazzy",
"lint:typescript": "eslint -c types/.eslintrc.json types/**/*.d.ts test/types/**/*.test-d.ts",
"prepublishOnly": "tap --no-check-coverage test/build/**.test.js",
"prepublishOnly": "PREPUBLISH=true tap --no-check-coverage test/build/**.test.js",
"test": "npm run lint && npm run unit && npm run test:typescript",
"test:ci": "npm run unit -- -R terse --cov --coverage-report=lcovonly && npm run test:typescript",
"test:report": "npm run lint && npm run unit:report && npm run test:typescript",
Expand Down
4 changes: 3 additions & 1 deletion test/build/error-serializer.test.js
Expand Up @@ -23,7 +23,9 @@ test('check generated code syntax', async (t) => {
t.equal(result[0].fatalErrorCount, 0)
})

test('ensure the current error serializer is latest', async (t) => {
const isPrebublish = !!process.env.PREPUBLISH

test('ensure the current error serializer is latest', { skip: !isPrebublish }, async (t) => {
t.plan(1)

const current = await fs.promises.readFile(path.resolve('lib/error-serializer.js'))
Expand Down

0 comments on commit fbc4450

Please sign in to comment.