Skip to content

Commit 5859be4

Browse files
committed
feat: migrate test-plugin to new syntax
Signed-off-by: Jakub Freisler <jakub@frsource.org>
1 parent 18a0ce3 commit 5859be4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/compileStyle.spec.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ test('custom postcss plugin', () => {
113113
filename: 'example.vue',
114114
source: '.foo { color: red }',
115115
scoped: false,
116-
postcssPlugins: [require('postcss').plugin('test-plugin', () => spy)()]
116+
postcssPlugins: [
117+
{
118+
postcssPlugin: 'test-plugin',
119+
Once: spy
120+
}
121+
]
117122
})
118123

119124
expect(spy).toHaveBeenCalled()

0 commit comments

Comments
 (0)