Skip to content

Commit

Permalink
feat: Add profiler to plugin bundle (#47)
Browse files Browse the repository at this point in the history
* feat: Add profiler to plugin bundle

* Upgrade @iopipe/config to v1.4.1
  • Loading branch information
kolanos committed Jun 19, 2019
1 parent 9fc3775 commit 2400709
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"node": ">=4.3.2"
},
"dependencies": {
"@iopipe/config": "^1.3.2",
"@iopipe/core": "^1.17.4"
"@iopipe/config": "^1.4.1",
"@iopipe/core": "^1.18.0"
},
"devDependencies": {
"@iopipe/scripts": "^1.4.1",
Expand Down
7 changes: 4 additions & 3 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('lib warns correctly for getContext methods', () => {
});

describe('iopipe kitchen sink', () => {
it('has trace and event info plugins pre-bundled', done => {
it('has trace, event info and profiler plugins pre-bundled', done => {
let invocation;
iopipe({
clientId: 'foobar',
Expand All @@ -28,11 +28,12 @@ describe('iopipe kitchen sink', () => {
try {
const { config } = context.iopipe;

expect(invocation.plugins).toHaveLength(3);
expect(invocation.plugins).toHaveLength(4);
expect(invocation.plugins.map(p => p.meta.name)).toEqual([
'wow',
'@iopipe/trace',
'@iopipe/event-info'
'@iopipe/event-info',
'@iopipe/profiler'
]);

expect(_.isFunction(config.plugins[0])).toBe(true);
Expand Down
Loading

0 comments on commit 2400709

Please sign in to comment.