Skip to content

Commit

Permalink
Refactor instrumentation
Browse files Browse the repository at this point in the history
Use babel async instrumentation combined with
babel-plugin-istanbul
  • Loading branch information
Christoffer Åström committed Nov 1, 2017
1 parent 898f94e commit 2da897d
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 102 deletions.
2 changes: 0 additions & 2 deletions aw.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion examples/requirejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
To be able to generate coverage we need to serve the files with a http server and instrument the source files

```shell

./src/cli.js chrome --url http://localhost:9676/examples/requirejs/index.html --glob examples/requirejs/*.spec.js --coverage
```
1 change: 1 addition & 0 deletions examples/requirejs/a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
define([], () => 'a');
8 changes: 8 additions & 0 deletions examples/requirejs/a.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
define(['chai', './a'], (chai, a) => {
const { expect } = chai;
describe('A', () => {
it('should return "a"', () => {
expect(a).to.equal('a');
});
});
});
8 changes: 8 additions & 0 deletions examples/requirejs/b.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
define([], function() {
return {
dummy: function() {}
};
});
// define([], () => ({
// dummy() {},
// }));
3 changes: 0 additions & 3 deletions examples/requirejs/test.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/requirejs/test.spec.js

This file was deleted.

Loading

0 comments on commit 2da897d

Please sign in to comment.