Reputation: 45
Anyone please help me with following issue. I have an ConfigFunctions class as following
Then I try to access loadConfig function of this class in my spec verify.home.page.display.correclt.spec.ts
Unfortunately, I got following error when trying to execute my test script
Upvotes: 1
Views: 41
Reputation: 45
I solved my issue following these steps:
Change path location in import sentence to relative as below
Due to I am using tsc
command to compile ts scripts files to js script file, so I need to add rm -rf dist
command to delete my dist folder before compile test script file again
Upvotes: 0
Reputation: 151
The path you have written in import is incorrect, try to prove relative url with root like '../../../configurations/configFunctions'
Upvotes: 3