Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 6, 2022
1 parent 44836eb commit c9813ab
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
23 changes: 23 additions & 0 deletions test/form/samples/runs-output-plugins-last/_config.js
@@ -0,0 +1,23 @@
module.exports = {
description: 'runs output plugins last',
options: {
plugins: [
{
name: 'input',
renderChunk(code) {
return `/* input */\n${code}\n/* input */`;
}
}
],
output: {
plugins: [
{
name: 'input',
renderChunk(code) {
return `/* output */\n${code}\n/* output */`;
}
}
]
}
}
};
7 changes: 7 additions & 0 deletions test/form/samples/runs-output-plugins-last/_expected.js
@@ -0,0 +1,7 @@
/* output */
/* input */
let foo = 'base';

export { foo };
/* input */
/* output */
1 change: 1 addition & 0 deletions test/form/samples/runs-output-plugins-last/main.js
@@ -0,0 +1 @@
export let foo = 'base';
4 changes: 2 additions & 2 deletions test/function/samples/options-in-renderstart/_config.js
Expand Up @@ -22,10 +22,10 @@ module.exports = {
},
exports: () => {
assert.deepStrictEqual(checkedOptions, [
'output-plugin',
'input-plugin',
'cjs',
'global',
'input-plugin',
'output-plugin',
'cjs',
'global'
]);
Expand Down

0 comments on commit c9813ab

Please sign in to comment.