Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run error serializer check only before release #4130

Merged
merged 1 commit into from Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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