Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

SCP-3452 chain-index e2e tests #312

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plutus-chain-index/e2e-tests/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.eslintrc.js
45 changes: 45 additions & 0 deletions plutus-chain-index/e2e-tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: "./tsconfig.json",
},
plugins: [
'@typescript-eslint',
'sort-imports-es6-autofix',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
settings: {
"import/resolver": {
"typescript": {}
}
},
rules: {
"no-unused-vars": 0,
"linebreak-style": [
2,
"unix"
],
"new-cap": 0,
"no-unused-expressions": 0,
"no-useless-constructor": 0,
"sort-imports-es6-autofix/sort-imports-es6": "warn",
"sort-imports": ["warn", { ignoreDeclarationSort: true }],
"@typescript-eslint/no-floating-promises": ["error"],
'@typescript-eslint/explicit-module-boundary-types': 0,
"max-len": ["error", { "code": 120 }],
"@typescript-eslint/ban-types": 0,
'@typescript-eslint/no-non-null-assertion': 0,
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
"@typescript-eslint/no-var-requires": 0,
"template-tag-spacing": 0,
'promise/avoid-new': 0,
'consistent-return': 0, // typescript checks return types
"no-shadow": "off", // eslint compains about TS enums hence disable here and enable @typescript-eslint/no-shadow
"import/no-unresolved": 0
}
};
1 change: 1 addition & 0 deletions plutus-chain-index/e2e-tests/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.12.0
15 changes: 15 additions & 0 deletions plutus-chain-index/e2e-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Chain-index end-to-end tests

## Sanity API tests

### Pre-requisites:
- You have a testnet instance of chain-index running somewhere
- Chain-index is synced to at least `min_slot` in the environment file `sanity-tests/testnet-env.json`
- Update URL in environment file if needed

### Run tests:
- `nvm use` (not required for `nix-shell` users)
- `npm i`
- `npm test`

## CI (todo)
Loading