I have 2 main folders within my project structure:
src/*.ts
test/*.test.ts
Within the src folder, there exists an interface named IImportRow.ts
interface IImportRow {
transactionId?: string;
transactionApiId?: string;
...
}
This same interface is present in every other TypeScript file in the src folder.
However, in the test folder, the TypeScript compiler is unable to locate this interface
var row: IImportRow = {
transactionId: '10',
...
};
[ts] Cannot find name 'IImportRow'.
Is this behavior expected? How can I rectify this issue?
Below is a snippet of my tsconfig.json
configuration
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"sourceMap": true,
"outDir": "dist",
"strict": false,
"noImplicitAny": false,
"strictPropertyInitialization": false,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},