Repository navigation
test: fix different test related issues - #484
Conversation
| testHelper.deleteDummyContextFile(); | ||
| }); | ||
|
|
||
| describe('config:context:current', () => { |
There was a problem hiding this comment.
this should fix random:
EPERM: operation not permitted, open 'D:\a\cli\cli\test.asyncapi'
27 |
28 | createDummyContextFile(): void {
> 29 | writeFileSync(DEFAULT_CONTEXT_FILE_PATH, JSON.stringify(this._context), { encoding: 'utf-8' });
| ^
30 | }
31 |
32 | deleteDummyContextFile(): void {
because as I can see, the context tests do not really need fresh context file for each test case and we can have it create just once
|
|
||
| if (canMove) { | ||
| const totalMove = report.moveToComponents?.filter((e) => e.action === 'move').length; | ||
| const totalMove = report.moveToComponents?.filter((e: ReportElement) => e.action === 'move').length; |
There was a problem hiding this comment.
fix for
Error: src/commands/optimize.ts(135,58): error TS7006: Parameter 'e' implicitly has an 'any' type.
| "globby": "^10.0.2", | ||
| "jest": "^29.1.0", | ||
| "markdown-toc": "^1.2.0", | ||
| "react": "^16.14.0", |
There was a problem hiding this comment.
generator sdk uses react 17
I just bumped into https://stackoverflow.com/questions/70079543/could-not-find-module-in-path-react-jsx-runtime-relative-to-mui-styled-engi and suggestion to use react 16.4
if I do not add react 16.4 to devDependencies then I always get the same error that @Souvikns gets and also other folks in local system:
Generator Error: Cannot find module 'react/cjs/react-jsx-runtime.production.min' from 'test/minimaltemplate/__transpiled/index.js'
|
Kudos, SonarCloud Quality Gate passed!
|
|
@Souvikns fixing 3 different errors related to testing. Please have a look and lemme know what you think. |
|
/rtm |
|
🎉 This PR is included in version 0.33.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |








No description provided.