// $ExpectError tests can never fail
See original GitHub issue// $ExpectError
const x: number = 3;
That should fail, but doesn’t.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Spring Reactive test doesn't result in an expected error
While running the test, i am getting the below error: java.lang.AssertionError: expectation "expectError(Class)" failed (expected: onError( ...
Read more >Testing Errors When Building a Terraform Provider
Am writing tests for a terraform provider and have read the docs for ... However, passing this error in under ExpectError- I'm unable...
Read more >Testing Reactive Streams Using StepVerifier and TestPublisher
The OnError signal notifies the subscriber that the publisher is closed with an error state. Therefore, we can't add more expectations afterward ...
Read more >Jest explicitly or arbitrarily force fail() a test - Code with Hugo
Output of the test run shows that if the code doens't throw, the test suite will fail, which is desired behaviour:.
Read more >Testing and Mocking Errors - MUnit - MuleSoft Documentation
<munit:test name="retrieveNullKeyTest" description="Expect error when key is ... As you can see, in this case you don't have to expect the OS:INVALID_KEY ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Flow recently made unused suppression comments warnings instead of errors. Warnings are not included by default. (You need
include_warnings=true
in the.flowconfig
). I’ll look into how this affects running specs on travis.Yeah would not be fair to fail tests on non-related libdefs.
@julienw you can clone the repo and specify which tests you want to run like:
node -r babel-register cli/src/cli.js run-tests angular_v1.5.x/flow_v0.47.x-
see https://github.com/flowtype/flow-typed/wiki/CLI-Commands-and-Flags#run-tests