Can client.args be passed in the karma test specification?

From https://github.com/karma-runner/grunt-karma ,

Using additional client.args

You can pass arbitrary client.args through the command line as follows:

$ grunt karma: dev watch --grep = mypattern

Can the client be used in test specifications? How to access these values?

+4
source share
1 answer

The answer to this question may help the beginning of karma - transmission parameters

To quote it here you can do

it("get karma args", function () {
    console.log(__karma__.config.args);
});
0
source

Source: https://habr.com/ru/post/1583894/


All Articles