| export default { | ||
| spec_dir: "spec", | ||
| spec_files: [ | ||
| "**/*[sS]pec.?(m)js" | ||
| ], | ||
| helpers: [ | ||
| "helpers/**/*.?(m)js" | ||
| ], | ||
| env: { | ||
| stopSpecOnExpectationFailure: false, | ||
| random: true, | ||
| forbidDuplicateNames: true | ||
| } | ||
| } |
+10
-7
@@ -249,10 +249,13 @@ const path = require('path'); | ||
| const print = options.print; | ||
| const specDir = options.specDir; | ||
| makeDirStructure(path.join(specDir, 'support/')); | ||
| if(!fs.existsSync(path.join(specDir, 'support/jasmine.json'))) { | ||
| fs.writeFileSync(path.join(specDir, 'support/jasmine.json'), fs.readFileSync(path.join(__dirname, '../lib/examples/jasmine.json'), 'utf-8')); | ||
| const destDir = path.join(options.specDir, 'support/'); | ||
| makeDirStructure(destDir); | ||
| const destPath = path.join(destDir, 'jasmine.mjs'); | ||
| if (fs.existsSync(destPath)) { | ||
| print('spec/support/jasmine.mjs already exists in your project.'); | ||
| } else { | ||
| const contents = fs.readFileSync( | ||
| path.join(__dirname, '../lib/examples/jasmine.mjs'), 'utf-8'); | ||
| fs.writeFileSync(destPath, contents); | ||
| } | ||
| else { | ||
| print('spec/support/jasmine.json already exists in your project.'); | ||
| } | ||
| } | ||
@@ -259,0 +262,0 @@ |
+1
-1
@@ -37,3 +37,3 @@ const ExitHandler = require('./exit_handler'); | ||
| * const Jasmine = require('jasmine'); | ||
| * const jasmine = new Jasmine(); | ||
| * const runner = new Jasmine(); | ||
| */ | ||
@@ -40,0 +40,0 @@ class Jasmine extends RunnerBase { |
@@ -105,3 +105,3 @@ const path = require('path'); | ||
| for (const ext of ['json', 'js']) { | ||
| for (const ext of ['mjs', 'json', 'js']) { | ||
| const candidate = `spec/support/jasmine.${ext}`; | ||
@@ -112,2 +112,8 @@ | ||
| numFound++; | ||
| if (ext === 'mjs') { | ||
| break; | ||
| } | ||
| // Otherwise continue possibly loading other files, for backwards | ||
| // compatibility. | ||
| } catch (e) { | ||
@@ -114,0 +120,0 @@ if (e.code !== 'MODULE_NOT_FOUND' // CommonJS |
+2
-2
@@ -13,3 +13,3 @@ { | ||
| "license": "MIT", | ||
| "version": "5.4.0", | ||
| "version": "5.5.0", | ||
| "repository": { | ||
@@ -36,3 +36,3 @@ "type": "git", | ||
| "glob": "^10.2.2", | ||
| "jasmine-core": "~5.4.0" | ||
| "jasmine-core": "~5.5.0" | ||
| }, | ||
@@ -39,0 +39,0 @@ "bin": "./bin/jasmine.js", |
| { | ||
| "spec_dir": "spec", | ||
| "spec_files": [ | ||
| "**/*[sS]pec.?(m)js" | ||
| ], | ||
| "helpers": [ | ||
| "helpers/**/*.?(m)js" | ||
| ], | ||
| "env": { | ||
| "stopSpecOnExpectationFailure": false, | ||
| "random": true | ||
| } | ||
| } |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
79773
0.29%2243
0.36%+ Added
- Removed
Updated