mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-13 08:51:38 +08:00
Lint
This commit is contained in:
@@ -122,6 +122,16 @@ utils](https://vue-test-utils.vuejs.org/) to mount individual components in a
|
||||
test bed and check them for rendered features. Please use jest-based mocking
|
||||
for isolating test functionality.
|
||||
|
||||
### Linting
|
||||
|
||||
We use [Prettier](https://prettier.io/) to enforce code style and best
|
||||
practices. Before submitting a pull request, from the `client` folder, run the
|
||||
following commands as appropriate to ensure all the code is properly formatted:
|
||||
|
||||
yarn prettier --check .
|
||||
yarn prettier --write .
|
||||
yarn prettier --write src/components/MyComponent.js
|
||||
|
||||
### Running the tests
|
||||
|
||||
#### At Build-Time
|
||||
|
||||
@@ -10,10 +10,10 @@ jest.mock("@/composables/config", () => ({
|
||||
config: {
|
||||
install_tool_dependencies: true,
|
||||
install_repository_dependencies: true,
|
||||
install_resolver_dependencies: true
|
||||
install_resolver_dependencies: true,
|
||||
},
|
||||
isConfigLoaded: true
|
||||
})
|
||||
isConfigLoaded: true,
|
||||
}),
|
||||
}));
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
Reference in New Issue
Block a user