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

Test: make it easier to add tests #1031

Closed
erezrokah opened this issue Jul 27, 2020 · 0 comments · Fixed by #1040
Closed

Test: make it easier to add tests #1031

erezrokah opened this issue Jul 27, 2020 · 0 comments · Fixed by #1040
Assignees
Labels
type: chore work needed to keep the product and development running smoothly

Comments

@erezrokah
Copy link
Contributor

At the moment most of our tests share the same site:

const sitePath = path.join(__dirname, 'dummy-site')

Or use pre-existing directories of sites:
test('build command - succeeds', async t => {

This makes the tests hard to follow and also adding new tests requires setting up a site manually.

Ideally we would have a test setup utility that allows configuring a site with different configurations (UI settings, netlify.toml settings, functions, etc).

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Jul 27, 2020
@erezrokah erezrokah self-assigned this Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant