mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
lint fixes
This commit is contained in:
parent
599e712181
commit
3d129b5415
@ -19,7 +19,8 @@
|
||||
"@typescript-eslint/member-delimiter-style": [
|
||||
"error",
|
||||
{ "multiline": { "delimiter": "none" } }
|
||||
]
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
|
@ -102,6 +102,8 @@ To run all linting, unit and integration tests in one go, run:
|
||||
npm test
|
||||
```
|
||||
|
||||
The endpoints the integration tests run against are defined by your [Environment Variables](#️-Environment-Variables), and Cypress-specific variables in `cypress.json`.
|
||||
|
||||
### Unit Tests
|
||||
|
||||
For local development, you can start the test runners for client & server in a watch mode.
|
||||
@ -130,8 +132,6 @@ npm run test:e2e
|
||||
|
||||
This will automatically spin up all required resources to run the integrations tests, and then run them.
|
||||
|
||||
The endpoints Cypress runs against are defined by your [Environment Variables](#️-Environment-Variables), and Cypress-specific variables in `cypress.json`.
|
||||
|
||||
You can also use the UI of Cypress to run and inspect the integration tests locally:
|
||||
|
||||
```bash
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import { render, fireEvent, waitForElement } from '@testing-library/react'
|
||||
import mockAxios from 'jest-mock-axios'
|
||||
import { serviceUri } from '../../../config'
|
||||
import Files from '.'
|
||||
|
||||
const onChange = jest.fn()
|
||||
|
@ -64,7 +64,7 @@ app.get('/', (req, res) => {
|
||||
app.use('/api/v1/urlcheck', UrlCheckRouter)
|
||||
|
||||
/// catch 404
|
||||
app.use((req, res, next) => {
|
||||
app.use((req, res) => {
|
||||
res.status(404).send()
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user