When trying to run tests (grunt tests) in an CSUI extension project generated with the extension generator, you get an error:
09 01 2017 14:00:02.748:WARN [web-server]: 404: /base/csui/lib/css.jsPhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR LOG: 'There is no timestamp for /base/csui/lib/css.js!'PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR Error: Script error for "css", needed by: css!groop/widgets/hello/impl/hello_unnormalized4 http://requirejs.org/docs/errors.html#scripterror at node_modules/requirejs/require.js:143PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 0 of 0 ERROR (0.198 secs / 0 secs)Warning: Task "karma:debug" failed. Use --force to continue.Aborted due to warnings.
The reason is a faulty line in file test/test-config.json in the project. Line 21, instead of
css: 'csui/lib/css',
should be
css: 'lib/src/csui/lib/css',
After changing this line, the errors should disappear and the tests run without problems.