15 Matching Annotations
- May 2023
-
www.joshmorony.com www.joshmorony.com
-
create a new instance
Will we be able to mock this in tests?
-
- Jun 2021
-
www.mutuallyhuman.com www.mutuallyhuman.com
-
This meant that we owned both sides of the product implementation. For unit testing on the frontend, we stayed with Angular’s suggestion of Jasmine. For unit testing on the backend, we went with rspec-rails. These worked well since unit tests don’t need to cross technology boundaries.
-
-
docs.gitlab.com docs.gitlab.com
-
Unit tests are usually cheap, and you should consider them like the basement of your house
-
-
docs.gitlab.com docs.gitlab.com
-
The most important guideline to give is the following: Write clean unit tests if there is actual value in testing a complex piece of logic in isolation to prevent it from breaking in the future Otherwise, try to write your specs as close to the user’s flow as possible
-
- Mar 2021
-
trailblazer.to trailblazer.to
-
Unit tests for operations: They test all edge cases in a nice, fast unit test environment without any HTTP involved.
-
- Jan 2020
-
twitter.com twitter.com
-
Yes; everything needed to run the tests are bundled inside the test suite or executable. There's no connections to foreign processes or systems. I.e, no talking to databases or reading files from disk. If necessary, these connection points are faked / mocked.
Tests running in isolation don't depends on external systems to work.
-
- Nov 2019
-
kentcdodds.com kentcdodds.com
-
I should also add that I'm in favor of relying more heavily on integration testing. When you do this, you need to unit test fewer of your simple components and wind up only having to unit test edge cases for components (which can mock all they want).
-
-
medium.com medium.com
-
Unit test coverage grants confidence that code logic is correct(and serves as great developer documentation!)
-
- Oct 2019
- Aug 2018
-
-
Then it gets the native element of the compiled HTML (the HTML rendered by the component).
This explains what 'native element' is, at least in this case. Its the outcome HTML after the detectChanges()
-
We use an async before each. The purpose of the async is to let all the possible asynchronous code to finish before continuing.
Is this like putting your code in setTimeout() just to push it into the event loop task queue?...
-
-
angular.io angular.io
-
The CLI takes care of Jasmine and karma configuration for you.
meaning, creating a new app using ng new will create the needed mentioned (below) config files
Tags
Annotators
URL
-
- Dec 2016
-
olivinelabs.com olivinelabs.com
Tags
Annotators
URL
-
- Nov 2016
-
misko.hevery.com misko.hevery.com
-
You shouldn’t really be doing this anyway – you should have composed them, possibly via IOC.
Anybody can explain some more his idea?
-