@reliabilityworks/vibesec 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/test/htmlReport.test.js +32 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reliabilityworks/vibesec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"bin": {
|
|
5
5
|
"vibesec": "dist/cli.js"
|
|
6
6
|
},
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@reliabilityworks/analyzer-javascript": "1.0.
|
|
15
|
-
"@reliabilityworks/core": "1.0.
|
|
16
|
-
"@reliabilityworks/ruleset-astro": "1.0.
|
|
17
|
-
"@reliabilityworks/ruleset-expo": "1.0.
|
|
18
|
-
"@reliabilityworks/ruleset-express": "1.0.
|
|
19
|
-
"@reliabilityworks/ruleset-nextjs": "1.0.
|
|
20
|
-
"@reliabilityworks/ruleset-react-native": "1.0.
|
|
21
|
-
"@reliabilityworks/ruleset-sveltekit": "1.0.
|
|
14
|
+
"@reliabilityworks/analyzer-javascript": "1.0.4",
|
|
15
|
+
"@reliabilityworks/core": "1.0.4",
|
|
16
|
+
"@reliabilityworks/ruleset-astro": "1.0.4",
|
|
17
|
+
"@reliabilityworks/ruleset-expo": "1.0.4",
|
|
18
|
+
"@reliabilityworks/ruleset-express": "1.0.4",
|
|
19
|
+
"@reliabilityworks/ruleset-nextjs": "1.0.4",
|
|
20
|
+
"@reliabilityworks/ruleset-react-native": "1.0.4",
|
|
21
|
+
"@reliabilityworks/ruleset-sveltekit": "1.0.4",
|
|
22
22
|
"commander": "^12.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const assert = require('node:assert/strict')
|
|
2
|
+
const { execFileSync } = require('node:child_process')
|
|
3
|
+
const path = require('node:path')
|
|
4
|
+
const test = require('node:test')
|
|
5
|
+
|
|
6
|
+
test('html output includes summary chart and findings table', async () => {
|
|
7
|
+
const fixtureRoot = path.join(__dirname, '..', '..', 'core', 'test', 'fixtures', 'monorepo')
|
|
8
|
+
const cliPath = path.join(__dirname, '..', 'dist', 'cli.js')
|
|
9
|
+
|
|
10
|
+
const output = execFileSync(
|
|
11
|
+
process.execPath,
|
|
12
|
+
[
|
|
13
|
+
'--enable-source-maps',
|
|
14
|
+
cliPath,
|
|
15
|
+
'scan',
|
|
16
|
+
fixtureRoot,
|
|
17
|
+
'--output',
|
|
18
|
+
'html',
|
|
19
|
+
'--framework',
|
|
20
|
+
'auto',
|
|
21
|
+
'--fail-on',
|
|
22
|
+
'critical',
|
|
23
|
+
],
|
|
24
|
+
{ encoding: 'utf8' },
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
assert.match(output, /<title>VibeSec Security Report<\/title>/)
|
|
28
|
+
assert.match(output, /Frameworks:/)
|
|
29
|
+
assert.match(output, /<svg[^>]*class="chart-svg"/)
|
|
30
|
+
assert.match(output, /<table>/)
|
|
31
|
+
assert.match(output, /id="findings-body"/)
|
|
32
|
+
})
|