-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Not all tests in textlint have been run #1041
Comments
Ah, It |
It related with Dynamic Import + .ts Dynamic import can not import .ts file by default. |
We need to add https://github.com/lo1tuma/eslint-plugin-mocha for preventing this issue.
|
Good work! Additionally, we can use
The option will make the executions of tests containing |
It may difficutlt to use
I want to write like this.
Howevert, |
I found an example like this: .mocharc.js 'use strict';
module.exports = {
'forbid-only': Boolean(process.env.CI)
}; I'm not sure if it works in this repo. |
|
What version of textlint are you using?
4251c9e
What file type (Markdown, plain text, etc.) are you using?
What did you do? Please include the actual source code causing the issue.
I followed the Development Workflow
, added a new test in config-initializer-test.ts and
npm run test
inpackages/textlint
.What did you expect to happen?
What actually happened? Please include the actual, raw output from textlint.
The test I added never failed.
I found mocha's
.only()
is used here. According to mocha's doc, It forces only its specified tests to be executed.After removing the
.only
, some tests failed.The text was updated successfully, but these errors were encountered: