Skip to content

Commit

Permalink
test: move build from test to script
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil-codecov committed Oct 21, 2021
1 parent b712b4a commit ec22a69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bin": "dist/bin/codecov.js",
"scripts": {
"lint": "eslint \"src/**/*.ts\"",
"test": "npm run lint && jest --runInBand",
"test": "npm run lint && npm run build && jest --runInBand",
"test:e2e": "jest test/e2e/output.test.ts",
"build:clean": "rm -rf dist",
"build": "tsc --build",
Expand Down
9 changes: 0 additions & 9 deletions test/e2e/output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ const execFilePromise = promisify(execFile)
describe('Uploader Output E2E Tests', () => {
let runResult: { stderr: string; stdout: string }

beforeAll(async () => {
const buildResult = await execFilePromise('npm', ['run', 'build'])

if (buildResult.stderr !== '') {
console.error(buildResult.stderr)
expect(true).toBeFalsy // Fail
}
})

describe('successful runs', () => {
beforeEach(async () => {
// Clear the results
Expand Down

0 comments on commit ec22a69

Please sign in to comment.