You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error when running my test case
Test suite failed to run
TypeError: Super expression must either be null or a function
13 | @field('modified') modified!: string;
14 |
> 15 | @field('whatsapp_setting_id') whatsappSettingId!: string;
| ^
16 | }
17 |
18 | export default ChatSettings;
at _inherits (node_modules/@babel/runtime/helpers/inherits.js:4:11)
at src/db/modals/ChatSettings.ts:15:32
at Object.<anonymous> (src/db/modals/ChatSettings.ts:15:32)
at Object.require (src/db/index.ts:3:1)
at Object.require (src/db/controller/MessageDBController.ts:2:1)
at Object.require (src/screens/WhatsappChat/Message.tsx:13:1)
at Object.require (navigation/StackNavigators/AccountStack.tsx:30:1)
at Object.require (navigation/StackNavigators/__tests__/AccountStack.test.tsx:6:1)
I have checked regarding this error but still getting same issue. below are the babel.config.js file I am having.
{
"extends": "@tsconfig/react-native/tsconfig.json",
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"paths": {
// this allows sub-package imports from src; fx. '@nozbe/watermelondb/decorators'
"@nozbe/watermelondb/": ["./src/db/"]
}
},
"include": [
"./*.ts",
"./src//*.ts" // this is just used to validate everything, not just imported declarations
]
}**
I am getting below error when running my test case
I have checked regarding this error but still getting same issue. below are the babel.config.js file I am having.
babel.config.js
tsconfig.json
{
"extends": "@tsconfig/react-native/tsconfig.json",
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"paths": {
// this allows sub-package imports from src; fx. '@nozbe/watermelondb/decorators'
"@nozbe/watermelondb/": ["./src/db/"]
}
},
"include": [
"./*.ts",
"./src//*.ts" // this is just used to validate everything, not just imported declarations
]
}**
package.json
"@nozbe/watermelondb": "^0.27.1",
"@nozbe/with-observables": "^1.6.0",
The text was updated successfully, but these errors were encountered: