Hi,
Looking at a project created using the Angular CLI means we now have a much better idea as to how we might go about adding support for Unit and End-to-End Testing to an existing Ionic project.
See: https://robferguson.org/blog/2017/11/28/testing-your-ionic-3-app/
And, aliases work too (src/tsconfig.spec.json):
"compilerOptions": {
...
"target": "es5",
"types": [
"jasmine",
"node"
],
"baseUrl": "../src",
"paths": {
"@app/*": [ "app/*" ],
"@assets/*": [ "assets/*" ],
"@env": [ "environments/environment" ],
"@pages/*": [ "pages/*" ],
"@services/*": [ "services/*" ],
"@tests/*": [ "./*" ],
"@theme/*": [ "theme/*" ]
}
}
Cheers
Rob