From 04eb087737b28222c53ae8301297fa12d2350e1f Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 6 Sep 2026 23:11:40 +0100 Subject: [PATCH] Add Jest configuration file for testing setup --- jest.config.cjs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 jest.config.cjs diff --git a/jest.config.cjs b/jest.config.cjs new file mode 100644 index 0000000..6bf9e0f --- /dev/null +++ b/jest.config.cjs @@ -0,0 +1,23 @@ +module.exports = { + testEnvironment: 'node', + transform: {}, + moduleFileExtensions: ['js', 'json', 'jsx', 'node'], + testMatch: ['**/__tests__/**/*.js', '**/?(*.)+(spec|test).js'], + verbose: true, + reporters: [ + 'default', + [ + 'jest-junit', + { + outputDirectory: '.', + outputName: 'test-results.xml', + suiteName: 'farmcontrol-ws-tests', + classNameTemplate: '{classname}', + titleTemplate: '{title}', + ancestorSeparator: ' › ', + usePathForSuiteName: 'true', + }, + ], + ], +}; +