Skip to content

Commit

Permalink
feat: migrate test-plugin to new syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Freisler <[email protected]>
  • Loading branch information
FRSgit committed Feb 4, 2022
1 parent 18a0ce3 commit 5859be4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/compileStyle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ test('custom postcss plugin', () => {
filename: 'example.vue',
source: '.foo { color: red }',
scoped: false,
postcssPlugins: [require('postcss').plugin('test-plugin', () => spy)()]
postcssPlugins: [
{
postcssPlugin: 'test-plugin',
Once: spy
}
]
})

expect(spy).toHaveBeenCalled()
Expand Down

0 comments on commit 5859be4

Please sign in to comment.