Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
guestline-scripts
Advanced tools
This package includes a set of scripts that makes configuring a project easier. It uses the eslint-config-guestline. It includes built in test runner.
This package includes a set of scripts that makes configuring a project easier. It uses the eslint-config-guestline. It includes built in test runner.
If you want to see the linting in your IDE, create a file named .eslintrc
with following contents in the root folder of your project:
{
"extends": "guestline"
}
That's it!
However, if you are using Guestline Scripts, any additional rules will only be displayed in the IDE, but not in the browser or the terminal.
We are running tests using Jest. All documentation can be found here.
To run tests, add a new script in your package.json
:
{
"scripts": {
"test": "guestline-scripts test --env=jsdom"
}
}
Remove --env=jsdom
if you do not run tests that need a document
- e.g. node tests.
By default running tests runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called CI.
Popular CI servers already set the environment variable CI by default but you can do this yourself too:
set CI=true&&npm test
(Note: the lack of whitespace is intentional.)
($env:CI = $true) -and (npm test)
CI=true npm test
If your app uses a browser API that you need to mock in your tests or if you just need a global setup before running your tests, add a src/setupTests.js
to your project. It will be automatically executed before running your tests.
For example:
const localStorageMock = {
getItem: jest.fn(),
setItem: jest.fn(),
clear: jest.fn()
};
global.localStorage = localStorageMock;
FAQs
This package includes a set of scripts that makes configuring a project easier. It uses the eslint-config-guestline. It includes built in test runner.
The npm package guestline-scripts receives a total of 9 weekly downloads. As such, guestline-scripts popularity was classified as not popular.
We found that guestline-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.