Skip to content

Commit

Permalink
Some improvements for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
htuzel committed Nov 19, 2024
1 parent 9d8ed14 commit de59552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const config = {
clearMocks: true,

// The paths to modules that run some code to configure or set up the testing environment before each test
setupFiles: ['<rootDir>/jest.setup.js'],
testPathIgnorePatterns: ['/node_modules/', '/test/e2e/'],
setupFiles: ['<rootDir>/jest.setup.js']
};

module.exports = config;
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Algolia SFRA Link Cartridge",
"scripts": {
"test": "sgmf-scripts --test test/unit/**/model/algoliaProduct.js",
"test:unit": "jest test/unit",
"test:unit": "jest --testPathPattern='test/unit'",
"test:integration": "sgmf-scripts --integration 'test/integration/**/*.js'",
"copy-scripts": "copy-files-from-to",
"compile:scss": "sgmf-scripts --compile css",
Expand All @@ -20,10 +20,9 @@
"deploy:code": "node scripts/deployCode.js",
"import:preferences": "node scripts/importPreferences.js",
"run:sfcc-job": "node scripts/runSFCCJob.js",
"test:index": "npm install algoliasearch && npm test -- test/e2e/variation_index.test.js",
"test:frontend": "cypress run",
"test:e2e": "./e2e.sh",
"test:variationindex": "jest test/e2e/variation_index.test.js"
"test:variationindex": "jest --testPathPattern='test/e2e/variation_index.test.js'"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit de59552

Please sign in to comment.