Commit 19cfcb29 authored by yann300's avatar yann300

fix tests

parent 6ad6a259
...@@ -51,6 +51,7 @@ jobs: ...@@ -51,6 +51,7 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run build:libs - run: npm run build:libs
- run: export NODE_OPTIONS="--max_old_space_size=8192"
- run: npm run test:libs - run: npm run test:libs
remix-ide-chrome-1: remix-ide-chrome-1:
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
], ],
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {
"@remix-project/remix-lib": "^0.4.34", "@remix-project/remix-lib": "../remix-lib",
"ansi-gray": "^0.1.1", "ansi-gray": "^0.1.1",
"async": "^3.1.0", "async": "^3.1.0",
"body-parser": "^1.18.2", "body-parser": "^1.18.2",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
} }
], ],
"dependencies": { "dependencies": {
"@remix-project/remix-lib": "^0.4.34", "@remix-project/remix-lib": "../remix-lib",
"eslint-scope": "^5.0.0", "eslint-scope": "^5.0.0",
"@ethereumjs/vm": "^5.3.2", "@ethereumjs/vm": "^5.3.2",
"@ethereumjs/block": "^3.2.1", "@ethereumjs/block": "^3.2.1",
......
module.exports = { module.exports = {
name: 'remix-tests', name: 'remix-tests',
preset: '../../jest.config.js', preset: '../../jest.config.js',
verbose: false, verbose: true,
silent: false, // Silent console messages, specially the 'remix-simulator' ones silent: false, // Silent console messages, specially the 'remix-simulator' ones
transform: { transform: {
'^.+\\.[tj]sx?$': 'ts-jest', '^.+\\.[tj]sx?$': 'ts-jest',
}, },
transformIgnorePatterns: ["/node_modules/", "\\.pnp\\.[^\\\/]+$"],
rootDir: "./", rootDir: "./",
testTimeout: 40000, testTimeout: 40000,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html', 'json'],
......
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
}, },
"homepage": "https://github.com/ethereum/remix-project/tree/master/libs/remix-tests#readme", "homepage": "https://github.com/ethereum/remix-project/tree/master/libs/remix-tests#readme",
"dependencies": { "dependencies": {
"@remix-project/remix-lib": "^0.4.34", "@remix-project/remix-lib": "../remix-lib",
"@remix-project/remix-simulator": "^0.1.10-beta.0", "@remix-project/remix-simulator": "../remix-simulator",
"@remix-project/remix-solidity": "^0.3.35", "@remix-project/remix-solidity": "../remix-solidity",
"ansi-gray": "^0.1.1", "ansi-gray": "^0.1.1",
"async": "^2.6.0", "async": "^2.6.0",
"axios": ">=0.21.1", "axios": ">=0.21.1",
......
...@@ -10,9 +10,7 @@ describe('testRunner: remix-tests CLI', () => { ...@@ -10,9 +10,7 @@ describe('testRunner: remix-tests CLI', () => {
if(result) { if(result) {
const dirContent = result.stdout.toString() const dirContent = result.stdout.toString()
// Install dependencies if 'node_modules' is not already present // Install dependencies if 'node_modules' is not already present
if(!dirContent.includes('node_modules')) execSync( if(!dirContent.includes('node_modules')) execSync('npm install', { cwd: resolve(__dirname + '/../../../dist/libs/remix-tests') })
'ln -s ' + __dirname + '/../../../node_modules node_modules',
{ cwd: resolve(__dirname + '/../../../dist/libs/remix-tests') })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment