@@ -47,7 +47,9 @@ describe('create-package-json', () => {
4747
4848 it ( 'should return PluginConfig that executes correctly' , async ( ) => {
4949 const pluginConfig = create ( baseOptions ) ;
50- const pluginOutput = await executePlugin ( pluginConfig ) ;
50+ const pluginOutput = await executePlugin ( pluginConfig , {
51+ persist : { outputDir : '.code-pushup' } ,
52+ } ) ;
5153
5254 expect ( ( ) => pluginReportSchema . parse ( pluginOutput ) ) . not . toThrow ( ) ;
5355 expect ( pluginOutput ) . toMatchObject (
@@ -68,7 +70,9 @@ describe('create-package-json', () => {
6870 ...baseOptions ,
6971 license : 'MIT' ,
7072 } ) ;
71- const { audits : auditOutputs } = await executePlugin ( pluginConfig ) ;
73+ const { audits : auditOutputs } = await executePlugin ( pluginConfig , {
74+ persist : { outputDir : '.code-pushup' } ,
75+ } ) ;
7276
7377 expect ( auditOutputs [ 0 ] ?. value ) . toBe ( 1 ) ;
7478 expect ( auditOutputs [ 0 ] ?. score ) . toBe ( 0 ) ;
@@ -85,7 +89,9 @@ describe('create-package-json', () => {
8589 ...baseOptions ,
8690 type : 'module' ,
8791 } ) ;
88- const { audits : auditOutputs } = await executePlugin ( pluginConfig ) ;
92+ const { audits : auditOutputs } = await executePlugin ( pluginConfig , {
93+ persist : { outputDir : '.code-pushup' } ,
94+ } ) ;
8995
9096 expect ( auditOutputs [ 1 ] ?. slug ) . toBe ( 'package-type' ) ;
9197 expect ( auditOutputs [ 1 ] ?. score ) . toBe ( 0 ) ;
@@ -104,7 +110,9 @@ describe('create-package-json', () => {
104110 test : '0' ,
105111 } ,
106112 } ) ;
107- const { audits : auditOutputs } = await executePlugin ( pluginConfig ) ;
113+ const { audits : auditOutputs } = await executePlugin ( pluginConfig , {
114+ persist : { outputDir : '.code-pushup' } ,
115+ } ) ;
108116
109117 expect ( auditOutputs ) . toHaveLength ( audits . length ) ;
110118 expect ( auditOutputs [ 2 ] ?. slug ) . toBe ( 'package-dependencies' ) ;
@@ -125,7 +133,9 @@ describe('create-package-json', () => {
125133 test : '0' ,
126134 } ,
127135 } ) ;
128- const { audits : auditOutputs } = await executePlugin ( pluginConfig ) ;
136+ const { audits : auditOutputs } = await executePlugin ( pluginConfig , {
137+ persist : { outputDir : '.code-pushup' } ,
138+ } ) ;
129139
130140 expect ( auditOutputs ) . toHaveLength ( audits . length ) ;
131141 expect ( auditOutputs [ 2 ] ?. score ) . toBe ( 0 ) ;
@@ -146,7 +156,9 @@ describe('create-package-json', () => {
146156 test : '0' ,
147157 } ,
148158 } ) ;
149- const { audits : auditOutputs } = await executePlugin ( pluginConfig ) ;
159+ const { audits : auditOutputs } = await executePlugin ( pluginConfig , {
160+ persist : { outputDir : '.code-pushup' } ,
161+ } ) ;
150162
151163 expect ( auditOutputs ) . toHaveLength ( audits . length ) ;
152164 expect ( auditOutputs [ 2 ] ?. score ) . toBe ( 0 ) ;
0 commit comments