question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

// $ExpectError tests can never fail

See original GitHub issue
// $ExpectError
const x: number = 3;

That should fail, but doesn’t.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
GAntoinecommented, Oct 25, 2017

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.

1reaction
villesaucommented, Dec 8, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found