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

feat: update tests to run without need to build them before #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Onatolich
Copy link
Contributor

No description provided.

src/index.ts Outdated Show resolved Hide resolved
import { ExosScripts } from './common/types';

export default function exosScripts(scriptName: string, args: string[]): void {
export default function exosScripts(scriptName: string): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you removing the args?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because currently there is 2 process spawns. It should be improved but in different PR. Now I'm doing this minimum to make it possible for tests to work without prebuild.

Copy link
Collaborator

@interactivellama interactivellama Aug 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually babel, transpile, etc. is handled by Jest setup. However once we have functional unit tests, we probably will want to build for that script such as npm run test:functional or npm run test:browser.

Would a npm run test:unit without a build step be a good option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants