Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
cc5a5031
Unverified
Commit
cc5a5031
authored
Mar 21, 2023
by
mergify[bot]
Committed by
GitHub
Mar 21, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5220 from ethereum-optimism/sc/cmn-test-coverage
fix(ci): run tests for common-ts
parents
822f588a
33d10cd0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
12 deletions
+20
-12
config.yml
.circleci/config.yml
+4
-0
.depcheckrc
packages/common-ts/.depcheckrc
+12
-0
package.json
packages/common-ts/package.json
+2
-3
metrics.spec.ts
packages/common-ts/test/metrics.spec.ts
+2
-2
yarn.lock
yarn.lock
+0
-7
No files found.
.circleci/config.yml
View file @
cc5a5031
...
...
@@ -518,6 +518,10 @@ jobs:
patterns
:
packages
# Note: The below needs to be manually configured whenever we
# add a new package to CI.
-
run
:
name
:
Check common-ts
command
:
npx depcheck
working_directory
:
packages/common-ts
-
run
:
name
:
Check contracts
command
:
npx depcheck
...
...
packages/common-ts/.depcheckrc
0 → 100644
View file @
cc5a5031
ignores: [
"@babel/eslint-parser",
"@typescript-eslint/parser",
"eslint-plugin-import",
"eslint-plugin-unicorn",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"eslint-plugin-react",
"@typescript-eslint/eslint-plugin",
"eslint-config-prettier",
"eslint-plugin-prettier"
]
packages/common-ts/package.json
View file @
cc5a5031
...
...
@@ -17,7 +17,7 @@
"lint"
:
"yarn lint:fix && yarn lint:check"
,
"pre-commit"
:
"lint-staged"
,
"test"
:
"ts-mocha test/*.spec.ts"
,
"test:coverage"
:
"
echo 'no coverage'
"
"test:coverage"
:
"
nyc ts-mocha test/*.spec.ts && nyc merge .nyc_output coverage.json
"
},
"keywords"
:
[
"optimism"
,
...
...
@@ -48,8 +48,7 @@
"pino"
:
"^6.11.3"
,
"pino-multi-stream"
:
"^5.3.0"
,
"pino-sentry"
:
"^0.7.0"
,
"prom-client"
:
"^13.1.0"
,
"qs"
:
"^6.10.5"
"prom-client"
:
"^13.1.0"
},
"devDependencies"
:
{
"@ethersproject/abstract-provider"
:
"^5.7.0"
,
...
...
packages/common-ts/test/metrics.spec.ts
View file @
cc5a5031
...
...
@@ -3,11 +3,11 @@ import request from 'supertest'
import
chai
=
require
(
'
chai
'
)
const
expect
=
chai
.
expect
import
{
Logger
,
Metrics
,
createMetricsServer
}
from
'
../src
'
import
{
Logger
,
Legacy
Metrics
,
createMetricsServer
}
from
'
../src
'
describe
(
'
Metrics
'
,
()
=>
{
it
(
'
shoud serve metrics
'
,
async
()
=>
{
const
metrics
=
new
Metrics
({
const
metrics
=
new
Legacy
Metrics
({
prefix
:
'
test_metrics
'
,
})
const
registry
=
metrics
.
registry
...
...
yarn.lock
View file @
cc5a5031
...
...
@@ -17871,13 +17871,6 @@ qs@^6.10.3, qs@^6.9.4:
dependencies:
side-channel "^1.0.4"
qs@^6.10.5:
version "6.10.5"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.5.tgz#974715920a80ff6a262264acd2c7e6c2a53282b4"
integrity sha512-O5RlPh0VFtR78y79rgcgKK4wbAI0C5zGVLztOIdpWX6ep368q5Hv6XRxDvXuZ9q3C6v+e3n8UfZZJw7IIG27eQ==
dependencies:
side-channel "^1.0.4"
qs@^6.4.0, qs@^6.7.0:
version "6.10.1"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.1.tgz#4931482fa8d647a5aab799c5271d2133b981fb6a"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment