-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Unable to run unittest that contain ValidationRules #94
Comments
This is caused by a parser in function (a) {
return a.message;
}
function (a) {
"use strict";
return a.message;
}
function (a) {
"use strict";
cov_2n0ovlwwxg.f[2]++;
return a.message;
}
function (a) {
cov_2n0ovlwwxg.f[2]++;
return a.message;
} And fails on the following: function (a) {
cov_2n0ovlwwxg.f[2]++;
cov_2n0ovlwwxg.s[5]++;
return a.message;
}
function (a) {
/* istanbul ignore next */
cov_2n0ovlwwxg.f[2]++;
cov_2n0ovlwwxg.s[5]++;
return a.message;
} So it seems that the combination of the used code coverage tool (istanbul), transpiling and accessor-parser are causing this issue. |
add |
I'm submitting a bug report
1.0.0
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
V10.16.0
6.9.0
webpack 4.34.0
Browser:
n/a
Language:
TypeScript 3.1.2
Current behavior:
When running a test that tests a component which uses ValidationRules, the following error pops up:
I have searched for a proper way to unittest this, but I'm unable to find a solution. Hopefully the community can help me out.
What is the expected behavior?
A possibility to run unittest that contains ValidationRules without it throwing an exception.
I have created a public repo where you can find all the files necessary: https://github.com/JordyThien/aurelia-unittest-validation-rules
Basically I created a new aurelia project using the aurelia CLI:
au new aurelia-testing --unattended --select typescript,jest,vscode --here
I've updated the https://github.com/JordyThien/aurelia-unittest-validation-rules/blob/master/src/app.ts to contain ValidationRules
And I updated the spec to add
aurelia-validation
Where running the tests using
au test
the exception will be thrown.The text was updated successfully, but these errors were encountered: