diff --git a/client/README.md b/client/README.md index 667eb23b05e..532fad8661f 100644 --- a/client/README.md +++ b/client/README.md @@ -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 diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js index c17b1fc0910..15b0c28035b 100644 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js +++ b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js @@ -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();