Anybody can help me with the below error?
yarn test
yarn run v1.21.1
$ yarn testchain --ci yarn lerna run --concurrency 1 test
$ ./scripts/run-testchain.sh --ci yarn lerna run --concurrency 1 test
Setting ethers.js polling interval to 50 ms.
Loading snapshots/default.
Skipping git submodule update.
Starting Ganache...
Launched testchain in 24 seconds.
$ /home/sara/dai.js/node_modules/.bin/lerna run --concurrency 1 test
lerna notice cli v3.15.0
lerna info versioning independent
lerna info Executing command in 6 packages: "yarn run test"
lerna info run Ran npm script 'test' in '@makerdao/services-core' in 16.7s:
$ jest
lerna info run Ran npm script 'test' in '@makerdao/test-helpers' in 7.1s:
$ jest
lerna ERR! yarn run test exited 1 in '@makerdao/dai-plugin-governance'
lerna ERR! yarn run test stdout:
$ yarn testchain --ci jest --runInBand --config ./test/config/jestTestchainConfigOriginal.json
$ ../../scripts/run-testchain.sh --ci jest --runInBand --config ./test/config/jestTestchainConfigOriginal.json
Setting ethers.js polling interval to 50 ms.
Testchain is already running on port 2000.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run test stderr:
FAIL test/GovPollingService.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
FAIL test/VoteProxyService.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
FAIL test/ChiefService.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
FAIL test/VoteProxyFactoryService.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
FAIL test/EsmService.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
FAIL test/VoteProxy.test.js
● Test suite failed to run
Cannot find module 'ramda' from 'index.js'
However, Jest was able to find:
'../../src/index.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'json', 'jsx', 'ts', 'tsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
> 1 | import { map, prop } from 'ramda';
| ^
2 | import {
3 | VOTE_PROXY_FACTORY,
4 | CHIEF,
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (src/index.js:1:1)
Test Suites: 6 failed, 6 total
Tests: 0 total
Snapshots: 0 total
Time: 18.095s, estimated 57s
Ran all test suites.
error Command failed with exit code 1.
error Command failed with exit code 1.
lerna ERR! yarn run test exited 1 in '@makerdao/dai-plugin-governance'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
sara@sara-VirtualBox:/dai.js$ yarn test:watch
yarn run v1.21.1
error Command "test:watch" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
sara@sara-VirtualBox:/dai.js$ yarn test:net
yarn run v1.21.1
error Command "test:net" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.