File tree 2 files changed +22
-2
lines changed 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " qa-shadow-report" ,
3
- "version" : " 2.1.4 " ,
3
+ "version" : " 2.1.5 " ,
4
4
"bin" : {
5
5
"qa-shadow-report" : " ./cli.js" ,
6
6
"qasr" : " ./cli.js" ,
Original file line number Diff line number Diff line change @@ -114,7 +114,20 @@ const createConfigFile = () => {
114
114
const defaultConfigContent = `
115
115
// Sample Configuration File: Adjust values below to match your project's setup
116
116
117
- module.exports = {
117
+ // TypeScript type definition (will be ignored in JavaScript)
118
+ /** @type {{
119
+ teamNames?: string[];
120
+ testTypes?: string[];
121
+ testCategories?: string[];
122
+ googleSpreadsheetUrl?: string;
123
+ googleKeyFilePath?: string;
124
+ testData?: string;
125
+ csvDownloadsPath?: string;
126
+ weeklySummaryStartDay?: string;
127
+ }} */
128
+
129
+ // Support both CommonJS and ES Modules
130
+ const config = {
118
131
// Uncomment the relevant teams or add your own in the Describe block or It block:
119
132
// describe('[oregano] Unit test our math functions', () => {
120
133
// context('math', () => {
@@ -169,6 +182,13 @@ const createConfigFile = () => {
169
182
// Weekly summary settings (optional). To activate, set weekly summary sart date, summary will includes the start date and the following 7 days.
170
183
// weeklySummaryStartDay: 'Monday' OR process.env.WEEKLY_SUMMARY_START_DAY
171
184
};
185
+
186
+ // Support both CommonJS and ES Modules
187
+ if (typeof module !== 'undefined' && module.exports) {
188
+ module.exports = config;
189
+ } else {
190
+ export default config;
191
+ }
172
192
` ;
173
193
fs . writeFileSync ( configFilePath , defaultConfigContent , {
174
194
encoding : 'utf-8' ,
You can’t perform that action at this time.
0 commit comments