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

Add support for .cjs files; select but do not yet handle .mjs files #2334

Merged
merged 6 commits into from
Jan 4, 2020

Conversation

novemberborn
Copy link
Member

@novemberborn novemberborn commented Jan 3, 2020

As per #2293, this begins the work to support .cjs and .mjs files.

  • AVA will now select and load .cjs test files
  • AVA will now select, but refuse to load, .mjs test files
  • AVA will detect the module "type" in package.json, and refuse to load .js test files if the type is "module"
  • .js config files can now only contain an export default statement
  • .cjs config files are now supported
  • .mjs config files are now recognized, but AVA refuses to load them
  • --config files must have a known extension

@novemberborn novemberborn marked this pull request as ready for review January 4, 2020 15:52
@novemberborn novemberborn merged commit 8fa2825 into master Jan 4, 2020
@novemberborn novemberborn deleted the cjs-mjs branch January 4, 2020 15:52
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.

1 participant