Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 21, 2022
1 parent b1dec87 commit efc5ca6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/function/samples/adds-plugin-context-to-plugins/_config.js
@@ -0,0 +1,27 @@
const assert = require('assert');

module.exports = {
description: 'Adds plugin context to plugins with perf=true',
options: {
perf: true,
plugins: [
{
load() {
assert.ok(typeof this.parse === 'function');
},

resolveDynamicImport() {
assert.ok(typeof this.parse === 'function');
},

resolveId() {
assert.ok(typeof this.parse === 'function');
},

transform() {
assert.ok(typeof this.parse === 'function');
}
}
]
}
};
@@ -0,0 +1 @@
export default 'foo';
@@ -0,0 +1 @@
import('./foo');

0 comments on commit efc5ca6

Please sign in to comment.