Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elm-test

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elm-test - npm Package Compare versions

Comparing version 0.19.1-beta3 to 0.19.1-revision2

30

lib/Runner.js

@@ -42,3 +42,3 @@ // @flow

return new Promise(function(resolve, reject) {
var proc = spawn(readElmiPath, [], {
var proc = spawn(readElmiPath, ['--for-elm-test'], {
cwd: projectRootDir,

@@ -66,3 +66,3 @@ env: process.env,

try {
let outline = JSON.parse(jsonStr).details.outline;
let outline = JSON.parse(jsonStr).outline;

@@ -108,3 +108,3 @@ if (outline.type !== 'ValidPkg') {

const args = elmVersion ? ['--elm-version=' + elmVersion] : [];
let proc = spawn(readElmiPath, args, {
let proc = spawn(readElmiPath, args.concat(['--for-elm-test']), {
cwd: testRootDir,

@@ -134,3 +134,3 @@ env: process.env,

try {
modules = JSON.parse(jsonStr).internals;
modules = JSON.parse(jsonStr).testModules;
} catch (err) {

@@ -141,25 +141,9 @@ reject('Received invalid JSON from test interface search: ' + err);

var filteredModules = _.flatMap(modules, function(mod) {
var eligible = _.flatMap(_.toPairs(mod.values), function(pair) {
var name = pair[0];
var annotation = pair[1].annotation;
if (
annotation.moduleName &&
annotation.moduleName.package === 'elm-explorations/test' &&
annotation.moduleName.module === 'Test' &&
annotation.name === 'Test'
) {
return name;
} else {
return [];
}
});
// Must have at least 1 value of type Test. Otherwise ignore this module.
if (eligible.length > 0) {
if (mod.tests.length > 0) {
return [
{
moduleName: mod.module,
moduleName: mod.moduleName,
path: path.resolve(path.join(testRootDir, mod.path)),
tests: eligible,
tests: mod.tests,
},

@@ -166,0 +150,0 @@ ];

{
"name": "elm-test",
"version": "0.19.1-beta3",
"version": "0.19.1-revision2",
"description": "Run elm-test suites.",

@@ -11,5 +11,5 @@ "main": "elm-test.js",

"flow": "flow",
"test": "flow check && npm run prettier:check && mocha tests && cd elm && node ../bin/elm-test",
"prettier:check": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --list-different --parser flow",
"prettier:write": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --parser flow --write"
"test": "flow check && npm run format:check && mocha tests && cd elm && node ../bin/elm-test",
"format:check": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --list-different --parser flow && elm-format elm --validate",
"format:write": "prettier \"lib/**/*.js\" \"tests/**/*.js\" --parser flow --write && elm-format elm --yes"
},

@@ -35,10 +35,10 @@ "repository": {

"dependencies": {
"chalk": "2.4.2",
"chokidar": "3.2.0",
"cross-spawn": "7.0.0",
"elmi-to-json": "1.2.0",
"chalk": "3.0.0",
"chokidar": "3.3.0",
"cross-spawn": "7.0.1",
"elmi-to-json": "1.3.0",
"find-parent-dir": "^0.3.0",
"firstline": "2.0.2",
"fs-extra": "8.1.0",
"glob": "7.1.4",
"glob": "7.1.6",
"lodash": "4.17.15",

@@ -50,4 +50,4 @@ "minimist": "^1.2.0",

"supports-color": "7.1.0",
"temp": "0.9.0",
"which": "1.3.1",
"temp": "0.9.1",
"which": "2.0.1",
"xmlbuilder": "^13.0.2"

@@ -58,10 +58,11 @@ },

"byline": "^5.0.0",
"elm": "0.19.0-bugfix6",
"flow-bin": "0.108.0",
"mocha": "6.2.1",
"elm": "0.19.1-3",
"elm-format": "0.8.2",
"flow-bin": "0.111.3",
"mocha": "6.2.2",
"prettier": "^1.18.2",
"shelljs": "0.8.3",
"strip-ansi": "^5.2.0",
"strip-ansi": "^6.0.0",
"xml2js": "0.4.22"
}
}

@@ -21,3 +21,3 @@ # node-test-runner [![Version](https://img.shields.io/npm/v/elm-test.svg)](https://www.npmjs.com/package/elm-test) [![Travis build Status](https://travis-ci.org/rtfeldman/node-test-runner.svg?branch=master)](http://travis-ci.org/rtfeldman/node-test-runner) [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/f2qymrpgdfsad62w/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-test-runner/branch/master)

### Comand Line Arguments
### Command Line Arguments

@@ -24,0 +24,0 @@ #### `install`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc