Closed diegorodridev closed 4 years ago
I am having the exact same error, Is there any secret setup?
Try adding your setupJest.ts to your tsconfig.spec.ts.
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": ["jest", "node"],
"esModuleInterop": true
},
"files": ["polyfills.ts", "../jest.setup.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
I will try to add this to the docs.
Try adding your setupJest.ts to your tsconfig.spec.ts.
This seems doesn't solve the problem, and I suppose you are referring to the setupJest.ts file not jest.setup.ts in the sample code.
But It still failed with the same error message, though autocompletion is working fine.
Thank you for the answer @kreuzerk but I still have the same problem. I have had that configuration since the beginning, but it doesn't work.
@daiyis and @diegorodridev thanks a lot for the feedback - is there a reproduction repo for this issue?
I am having an strange error when trying to use this extension as part of my angular-jest testing environment.
I have done the following initial setup:
I have this environment in package.json
The estrange thing comes now, if I execute just console.logNgHTM(); Throws an error and says that it is missing parameters, this is the expected behaviour for an empty call. However, If I provide either console.logNgHTM(fixture) || console.logNgHTM(component), where component is the actual component being tested, it fails saying:
What am I missing? Any ideas?