This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Commit a216ed3
fix: inject app.css file from unit-test-runner on test command (#949)
Currently the app.css file from unit-test-runner is not included in bundle/vendor files on test command so the application remains without app.css file. The `tns-core-modules` shows an error in this situation with the in their latest next versions:
```
JS: Error: Could not load CSS from ./app.css: Error: com.tns.NativeScriptException: Failed to find module: "./app.css", relative to: app//
JS: com.tns.Module.resolvePathHelper(Module.java:146)
JS: com.tns.Module.resolvePath(Module.java:55)
JS: com.tns.Runtime.callJSMethodNative(Native Method)
JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1212)
JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:1092)
JS: com.tns.Runtime.callJSMethod(Runtime.java:1079)
JS: com.tns.Runtime.callJSMethod(Runtime.java:1059)
JS: com.tns.Runtime.callJSMethod(Runtime.java:1051)
JS: com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:19)
JS: android.app.Activity.performCreate(Activity.java:7136)
JS: android.app.Activity.performCreate(Activity.java:7127)
JS: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
JS: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
JS: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
JS: android.app.servertransac...
```
So we need to inject app.css in order to prevent this error :)1 parent 1e42046 commit a216ed3
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments