Skip to content

From CommonJS to ESM, while also using SWC with Jest in unit tests #27

From CommonJS to ESM, while also using SWC with Jest in unit tests

From CommonJS to ESM, while also using SWC with Jest in unit tests #27

Triggered via push May 9, 2024 19:53
Status Success
Total duration 24s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: jest.config.js#L63
This line has a length of 227. Maximum allowed is 120
build: jest.config.js#L84
This line has a length of 122. Maximum allowed is 120
build: jest.config.js#L174
This line has a length of 126. Maximum allowed is 120
build: jest.config.js#L179
This line has a length of 143. Maximum allowed is 120
build: lib/facebook-meta.js#L16
Function 'facebookMeta' has too many lines (42). Maximum allowed is 22
build: src/js/analytics.js#L11
Function 'analytics' has too many parameters (6). Maximum allowed is 3
build: src/js/analytics.js#L13
Expected an assignment or function call and instead saw an expression
build: src/js/analytics.js#L18
Use array destructuring
build: src/js/sendanmaki.js#L104
Method 'buildImageNotes' has too many statements (11). Maximum allowed is 10
build: tests/lib/facebook-meta.test.js#L10
Function has too many lines (32). Maximum allowed is 22