Tony133
b1d53e227b
chore(testing): mark facing apis public
2023-02-03 12:27:12 +01:00
Kamil Myśliwiec
2924c03aa3
fix: apply uuid factory strategy in testing module, update snapshots
2023-02-01 14:03:05 +01:00
Antonio Tripodi
a185e63281
Merge branch 'master' into refactor/improvements-imports
2023-02-01 11:40:47 +01:00
Tony133
4d4f3f82de
refactor(): improvements the imports
2023-01-16 16:08:53 +01:00
Kamil Myśliwiec
d4d5955424
chore: fix noop inspector, update integration tests
2023-01-11 19:54:49 +01:00
Kamil Myśliwiec
2b6211f81b
chore: merge conflicts
2023-01-11 19:30:30 +01:00
Kamil Myśliwiec
70473fe81a
refactor: introduce noop inspector
2023-01-11 19:28:06 +01:00
Kamil Myśliwiec
38f55a1cff
feat(core): introduce preview mode, update tests, fix minor issues
2023-01-11 15:14:50 +01:00
Kamil Myśliwiec
a89615b124
feat: add graph inspector implementation
2022-11-21 11:00:11 +01:00
Jay McDoniel
60feebc31c
feat: update code for nest v8
2021-11-10 13:35:29 -08:00
Jay McDoniel
c47c269986
feat: add ability to pass a token to the mock factory
2021-11-10 13:01:27 -08:00
Jay McDoniel
6b180398f3
fix: allow for module.get of mocked providers
...
The providers are still coming back `undefined` so there's still
some work to be done, but it's on it's way to being fully implemented
2021-11-10 13:01:26 -08:00
Jay McDoniel
b059754b9c
feat(testing): add auto-mocking capabilities
...
In the current `Test` module there isn't an easy way to say "If this
dependency doesn't exist use this mock function instead." With this new
`useMocker` fluent function it becomes possible to tell the `TestingInjector`
to replace the undefined dependency with the automocking function. In doing so
classes that have a large number of dependencies no longer must be mocked one-by-one
. This is especially great when it comes to packages like `@golevelup/ts-jest`
which can create mocked dependencies of interfaces and classes with a single function.
I'm sure I've probably missed an edge case in here, so please let me know if you have
any major concerns.
2021-11-10 13:01:24 -08:00
Kamil Mysliwiec
e6e11b9cf1
Update packages/testing/testing-module.builder.ts
2021-01-13 11:30:44 +01:00
Navid Nikpour
766218aad1
feat(testing): Changes Logger to LoggerService
...
to require the same interface that the underlying Logger class is expecting
2021-01-05 00:14:52 +01:00
Navid Nikpour
d6b2266615
feat(testing): adds builder method for optional custom logger
...
Adds a method that enables to set a new custom logger (extended from the Logger class) for testing. If this method is not used (therefore the logger gets never set) it falls back to the already existing TestingLogger of the testing module.
2021-01-04 22:53:13 +01:00
Kamil Myśliwiec
7309ba4bdf
chore(): remove lint from lint-staged
2020-01-26 12:17:23 +01:00
Kamil Myśliwiec
8e2280db05
bugfix(core/testing): override provider only if exists in the scope
2019-03-18 10:47:05 +01:00
Kamil Myśliwiec
7818a4de18
merge(): resolve conflicts
2019-03-15 14:30:08 +01:00
Kamil Myśliwiec
6893bd68bf
integration(): add middleware integration test
2019-03-14 15:56:21 +01:00
Kamil Myśliwiec
5588470479
refactor: remove deprecations and update to typescript 3.0
2018-11-28 23:59:57 +01:00
Kamil Myśliwiec
0b23422ab1
refactor: reduce implicit types
2018-11-24 17:28:28 +01:00
Kamil Myśliwiec
1cb3ed7f87
refactor: general refactor reorganize, rename things
2018-11-24 16:01:29 +01:00
Kamil Myśliwiec
005d16f447
refactor(nestjs) remove uncessary map calls
2018-09-21 09:21:50 +02:00
Kamil Myśliwiec
a9abd1c2ea
sample(@nestjs) update graphql example, add integration test
2018-08-25 15:47:46 +02:00
Kamil Myśliwiec
a9204cb399
bugfix(@nestjs/testing) await scan() operation
2018-07-04 18:30:08 +02:00
Kamil Myśliwiec
ae128f6e91
feature(@nestjs/testing) add error logs in the testing mode ( #709 , #713 )
2018-05-20 15:06:03 +02:00
Kamil Myśliwiec
b144dbef8c
chore(release) publish v5.0.0-beta.0
2018-04-17 18:22:27 +02:00
Kamil Myśliwiec
614de27310
refactor(@nestjs) rename directories, add script, fix tests
2018-03-24 15:11:48 +01:00