Skip to content

Commit

Permalink
test: remove build tests as build functionality is removed
Browse files Browse the repository at this point in the history
BREAKING CHANGE: build functionality is no longer tested!

working towards conveyal#318
  • Loading branch information
miles-grant-ibigroup committed Jul 6, 2021
1 parent e0e41e0 commit b83a082
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 136 deletions.
22 changes: 0 additions & 22 deletions __tests__/bin/mastarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,6 @@ describe('mastarm cli', () => {
})
})

describe('build', function () {
const buildDir = util.buildDir
const mockDir = util.mockDir

beforeEach(() => mkdirp(buildDir))
afterEach((done) => rimraf(buildDir, done))

it('should build a project', (done) => {
exec(
`node ${mastarm}-build ${mockDir}/index.js:${buildDir}/index.js ${mockDir}/index.css:${buildDir}/index.css`,
(err, stdout, stderr) => {
expect(err).toBeNull()
expect(stdout).toContain('done building')
expect(stderr).toBe('')
expect(fs.existsSync(`${buildDir}/index.js`)).toBeTruthy()
expect(fs.existsSync(`${buildDir}/index.css`)).toBeTruthy()
done()
}
)
})
})

describe('prepublish', function () {
const buildDir = util.buildDir
const mockDir = util.mockDir
Expand Down
109 changes: 0 additions & 109 deletions __tests__/lib/build.js

This file was deleted.

5 changes: 0 additions & 5 deletions __tests__/lib/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ describe('jest.js', () => {
expect(cfg).toMatchSnapshot()
})

it('should be able to load a file that requires yaml', () => {
const indexWithYaml = require('../test-utils/mocks/index-with-yaml')
expect(indexWithYaml).toBeTruthy()
})

it('should be able to perform an async test', async () => {
await Promise.resolve()
})
Expand Down

0 comments on commit b83a082

Please sign in to comment.