Commit e05bdf5
committed
test: add vitest setup and unit tests; chore: migrate to pnpm and add coverage
- Enable Corepack and pin pnpm via packageManager
- Remove yarn.lock and install via pnpm
- Add vitest and @vitest/coverage-v8; configure vitest
- Refactor index.js to export pure functions and defer env validation
- Add tests for buildChart and replaceCodestatsSection
- Update CI workflow to use pnpm and run tests + coverage1 parent f9ef4e4 commit e05bdf5
File tree
3,303 files changed
+533115
-455
lines changed- .github/workflows
- node_modules
- .bin
- .ignored
- bars
- examples
- child_process
- nock
- lib
- node_modules/debug
- src
- types
- request
- lib
- node_modules/.bin
- simple-git
- src
- lib
- errors
- parsers
- responses
- runners
- tasks
- types
- utils
- responses
- typings
- .pnpm
- @[email protected]/node_modules
- @ampproject/remapping
- dist
- types
- @jridgewell
- @[email protected]/node_modules/@babel/helper-string-parser
- lib
- @[email protected]/node_modules/@babel/helper-validator-identifier
- lib
- @[email protected]/node_modules/@babel
- parser
- bin
- lib
- node_modules/.bin
- typings
- @[email protected]/node_modules/@babel
- types
- lib
- asserts
- generated
- ast-types/generated
- builders
- flow
- generated
- react
- typescript
- clone
- comments
- constants
- generated
- converters
- definitions
- modifications
- flow
- typescript
- retrievers
- traverse
- utils
- react
- validators
- generated
- react
- @[email protected]/node_modules/@bcoe/v8-coverage
- src/lib
- @[email protected]/node_modules/@esbuild/darwin-arm64
- bin
- @[email protected]/node_modules
- @isaacs/cliui
- build
- lib
- @[email protected]/node_modules/@istanbuljs/schema
- @[email protected]/node_modules/@jridgewell
- gen-mapping
- dist
- types
- src
- types
- @[email protected]/node_modules/@jridgewell/resolve-uri
- dist
- types
- @[email protected]/node_modules/@jridgewell/sourcemap-codec
- dist
- src
- types
- @[email protected]/node_modules/@jridgewell
- trace-mapping
- dist
- src
- types
- @[email protected]/node_modules
- @kwsites/file-exists
- dist
- src
- test
- __mocks__
- @[email protected]/node_modules/@kwsites/promise-deferred
- dist
- @[email protected]/node_modules/@pkgjs/parseargs
- examples
- internal
- @[email protected]/node_modules/@rollup/rollup-darwin-arm64
- @[email protected]/node_modules/@types
- chai
- @[email protected]/node_modules/@types/deep-eql
- @[email protected]/node_modules/@types/estree
- @[email protected][email protected]/node_modules
- @ampproject
- @bcoe
- @vitest/coverage-v8
- dist
- node_modules/.bin
- @[email protected]/node_modules
- @types
- @vitest
- expect
- dist
- @[email protected][email protected]/node_modules
- @vitest
- mocker
- dist
- node_modules/.bin
- @[email protected]/node_modules
- @vitest/pretty-format
- dist
- @[email protected]/node_modules
- @vitest
- runner
- dist
- @[email protected]/node_modules
- @vitest
- snapshot
- dist
- @[email protected]/node_modules
- @vitest/spy
- dist
- @[email protected]/node_modules
- @vitest
- utils
- dist
- [email protected]/node_modules
- ajv
- dist
- lib
- compile
- dotjs
- dot
- refs
- scripts
- [email protected]/node_modules/ansi-regex
- [email protected]/node_modules/ansi-regex
- [email protected]/node_modules
- ansi-styles
- [email protected]/node_modules/ansi-styles
- [email protected]/node_modules
- asn1
- lib
- ber
- [email protected]/node_modules/assert-plus
- [email protected]/node_modules/assertion-error
- [email protected]/node_modules
- @jridgewell
- ast-v8-to-istanbul
- dist
- [email protected]/node_modules/asynckit
- lib
- [email protected]/node_modules/aws-sign2
- [email protected]/node_modules/aws4
- [email protected]/node_modules/balanced-match
- .github
- bars@https+++codeload.github.com+jstrace+bars+tar.gz+3fbff5a8781836c75724715bc714d050031e13be/node_modules
- bars
- examples
- [email protected]/node_modules
- bcrypt-pbkdf
- [email protected]/node_modules
- brace-expansion
- .github
- [email protected]/node_modules/cac
- deno
- dist
- [email protected]/node_modules/caseless
- [email protected]/node_modules
- chai
- lib
- chai
- core
- interface
- utils
- [email protected]/node_modules/check-error
- [email protected]/node_modules/child_process
- [email protected]/node_modules
- color-convert
- [email protected]/node_modules/color-name
- [email protected]/node_modules
- combined-stream
- lib
- [email protected]/node_modules/core-util-is
- lib
- [email protected]/node_modules
- cross-spawn
- lib
- util
- node_modules/.bin
- [email protected]/node_modules
- dashdash
- etc
- lib
- [email protected]/node_modules
- debug
- src
- [email protected]/node_modules/deep-eql
- [email protected]/node_modules/delayed-stream
- lib
- [email protected]/node_modules/eastasianwidth
- [email protected]/node_modules
- ecc-jsbn
- lib
- [email protected]/node_modules/emoji-regex
- es2015
- [email protected]/node_modules/emoji-regex
- es2015
- [email protected]/node_modules/es-module-lexer
- dist
- types
- [email protected]/node_modules
- @esbuild
- esbuild
- bin
- lib
- node_modules/.bin
- [email protected]/node_modules
- @types
- estree-walker
- src
- types
- [email protected]/node_modules/expect-type
- dist
- [email protected]/node_modules/extend
- [email protected]/node_modules/extsprintf
- lib
- [email protected]/node_modules/fast-deep-equal
- es6
- [email protected]/node_modules/fast-json-stable-stringify
- .github
- benchmark
- example
- test
- [email protected][email protected]/node_modules
- fdir
- dist
- [email protected]/node_modules
- foreground-child
- dist
- commonjs
- esm
- [email protected]/node_modules/forever-agent
- [email protected]/node_modules
- form-data
- lib
- [email protected]/node_modules/fsevents
- [email protected]/node_modules
- getpass
- lib
- [email protected]/node_modules
- glob
- dist
- commonjs
- esm
- node_modules/.bin
- [email protected]/node_modules/har-schema
- lib
- [email protected]/node_modules
- har-validator
- lib
- [email protected]/node_modules/has-flag
- [email protected]/node_modules/html-escaper
- cjs
- esm
- test
- [email protected]/node_modules
- http-signature
- lib
- node_modules/.bin
- [email protected]/node_modules/is-fullwidth-code-point
- [email protected]/node_modules/is-typedarray
- [email protected]/node_modules/isexe
- test
- [email protected]/node_modules/isstream
- [email protected]/node_modules/istanbul-lib-coverage
- lib
- [email protected]/node_modules
- istanbul-lib-report
- lib
- [email protected]/node_modules
- @jridgewell
- istanbul-lib-source-maps
- lib
- [email protected]/node_modules
- istanbul-reports
- lib
- clover
- cobertura
- html-spa
- assets
- src
- html
- assets
- vendor
- json-summary
- json
- lcovonly
- lcov
- none
- teamcity
- text-lcov
- text-summary
- text
- [email protected]/node_modules
- @isaacs
- @pkgjs
- jackspeak
- dist
- commonjs
- esm
- [email protected]/node_modules/js-tokens
- [email protected]/node_modules/jsbn
- [email protected]/node_modules/json-schema-traverse
- spec
- fixtures
- [email protected]/node_modules/json-schema
- lib
- [email protected]/node_modules/json-stringify-safe
- test
- [email protected]/node_modules
- jsprim
- lib
- [email protected]/node_modules/loupe
- lib
- [email protected]/node_modules/lru-cache
- dist
- commonjs
- esm
- [email protected]/node_modules
- @jridgewell
- magic-string
- dist
- [email protected]/node_modules
- @babel
- magicast
- dist
- node_modules/.bin
- [email protected]/node_modules
- make-dir
- node_modules/.bin
- [email protected]/node_modules/mime-db
- [email protected]/node_modules
- mime-types
- [email protected]/node_modules
- minimatch
- dist
- commonjs
- esm
- [email protected]/node_modules/minipass
- dist
- commonjs
- esm
- [email protected]/node_modules/ms
- [email protected]/node_modules/nanoid
- async
- bin
- node_modules/.bin
- non-secure
- url-alphabet
- [email protected]/node_modules
- nock
- lib
- types
- node_modules
- .bin
- @ampproject
- @babel
- @bcoe
- @esbuild
- @isaacs
- @istanbuljs
- @jridgewell
- @kwsites
- @pkgjs
- @rollup
- @types
- @vitest
- [email protected]/node_modules/oauth-sign
- [email protected]/node_modules/package-json-from-dist
- dist
- commonjs
- esm
- [email protected]/node_modules/path-key
- [email protected]/node_modules
- path-scurry
- dist
- commonjs
- esm
- [email protected]/node_modules/pathe
- dist
- [email protected]/node_modules/pathval
- [email protected]/node_modules/performance-now
- lib
- src
- test
- scripts
- [email protected]/node_modules/picocolors
- [email protected]/node_modules/picomatch
- lib
- [email protected]/node_modules
- postcss
- lib
- node_modules/.bin
- [email protected]/node_modules/printf
- doc
- lib
- test
- [email protected]/node_modules/propagate
- tests
- [email protected]/node_modules
- psl
- data
- dist
- types
- [email protected]/node_modules/punycode
- [email protected]/node_modules/qs
- .github
- dist
- lib
- test
- [email protected]/node_modules
- request
- lib
- node_modules/.bin
- [email protected]/node_modules
- @rollup
- @types
- rollup
- dist
- bin
- es
- node_modules/.bin
- [email protected]/node_modules/safe-buffer
- [email protected]/node_modules/safer-buffer
- [email protected]/node_modules/semver
- bin
- classes
- functions
- internal
- node_modules/.bin
- ranges
- [email protected]/node_modules
- shebang-command
- [email protected]/node_modules/shebang-regex
- [email protected]/node_modules/siginfo
- [email protected]/node_modules/signal-exit
- dist
- cjs
- mjs
- [email protected]/node_modules
- @kwsites
- simple-git
- src
- lib
- errors
- parsers
- plugins
- responses
- runners
- tasks
- types
- utils
- typings
- [email protected]/node_modules/source-map-js
- lib
- [email protected]/node_modules
- sshpk
- bin
- lib
- formats
- man/man1
- node_modules/.bin
- [email protected]/node_modules/stackback
- [email protected]/node_modules/std-env
- dist
- [email protected]/node_modules
- string-width
- [email protected]/node_modules
- string-width
- [email protected]/node_modules
- strip-ansi
- [email protected]/node_modules
- strip-ansi
- [email protected]/node_modules
- strip-literal
- dist
- [email protected]/node_modules
- supports-color
- [email protected]/node_modules
- @istanbuljs
- test-exclude
- node_modules/.bin
- [email protected]/node_modules/tinybench
- dist
- [email protected]/node_modules/tinyexec
- dist
- [email protected]/node_modules
- tinyglobby
- dist
- [email protected]/node_modules/tinypool
- dist
- entry
- [email protected]/node_modules/tinyrainbow
- dist
- [email protected]/node_modules/tinyspy
- dist
- [email protected]/node_modules
- tough-cookie
- lib
- [email protected]/node_modules
- tunnel-agent
- [email protected]/node_modules/tweetnacl
- [email protected]/node_modules
- uri-js
- dist
- es5
- esnext
- schemes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,303 files changed
+533115
-455
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
29 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
30 | 51 | | |
31 | 52 | | |
32 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
62 | | - | |
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | | - | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
83 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
84 | 115 | | |
85 | 116 | | |
86 | 117 | | |
| |||
90 | 121 | | |
91 | 122 | | |
92 | 123 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
97 | 129 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
106 | 134 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
110 | 139 | | |
111 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
112 | 150 | | |
113 | 151 | | |
114 | | - | |
115 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments