JS: removed app-module-path dependency from integration tests
This commit is contained in:
@@ -21,7 +21,7 @@ task populateNodeModules(type: Copy, dependsOn: compileKotlin2Js) {
|
||||
from zipTree(it.absolutePath).matching { include '*.js' }
|
||||
}
|
||||
|
||||
into "${buildDir}/classes"
|
||||
into "${buildDir}/node_modules"
|
||||
}
|
||||
|
||||
node {
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
var paths = require('app-module-path');
|
||||
|
||||
paths.addPath('build/classes');
|
||||
paths.addPath('build/classes/main');
|
||||
paths.addPath('build/classes/test');
|
||||
@@ -1,39 +1,20 @@
|
||||
{
|
||||
"name": "it",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "js/index.js",
|
||||
"scripts": {
|
||||
"test-jasmine": "jasmine js/paths.js js/jasmine-reporter.js build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-jasmine": "jasmine js/jasmine-reporter.js build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-jest": "jest",
|
||||
"test-mocha": "mocha -r js/paths.js --reporter js/mocha-reporter.js build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-qunit": "qunit -c js/paths.js -d js/qunit-reporter.js -t build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-tape": "tape js/paths.js js/tape-reporter.js js/tape-plugin.js build/classes/test/kotlin-test-js-it_test.js"
|
||||
"test-mocha": "mocha --reporter js/mocha-reporter.js build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-qunit": "qunit -c js/qunit-reporter.js -t build/classes/test/kotlin-test-js-it_test.js",
|
||||
"test-tape": "tape js/tape-reporter.js js/tape-plugin.js build/classes/test/kotlin-test-js-it_test.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"app-module-path": "^2.2.0",
|
||||
"jasmine": "^2.6.0",
|
||||
"jest": "^20.0.4",
|
||||
"mocha": "^3.4.2",
|
||||
"qunit": "^1.0.0",
|
||||
"tape": "^4.6.3",
|
||||
"watchify": "^3.9.0"
|
||||
"tape": "^4.6.3"
|
||||
},
|
||||
"jest": {
|
||||
"verbose": true,
|
||||
"roots": [
|
||||
"<rootDir>/build/classes/",
|
||||
"<rootDir>/build/classes/main/",
|
||||
"<rootDir>/build/classes/test/"
|
||||
],
|
||||
"testResultsProcessor": "<rootDir>/js/jest-reporter.js",
|
||||
"testRegex": "_test\\.js$",
|
||||
"moduleNameMapper": {
|
||||
"^kotlin$": "<rootDir>/build/classes/kotlin.js",
|
||||
"^kotlin-test$": "<rootDir>/build/classes/kotlin-test.js",
|
||||
"^kotlin-test-js-it_main$": "<rootDir>/build/classes/main/kotlin-test-js-it_main.js"
|
||||
}
|
||||
"testRegex": "_test\\.js$"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user