Code Monkey home page Code Monkey logo

wallaby-jspm-sample's Introduction

wallaby-jspm-sample's People

Contributors

artemgovorov avatar

Stargazers

Shunta Saito avatar Koki Oyatsu avatar

Watchers

James Cloos avatar  avatar Simon McEnlly avatar  avatar

wallaby-jspm-sample's Issues

Getting JSPM (systemjs), wallaby and typescript working

I've got a skeleton running but cannot get wallaby to work:

    module.exports = function (wallaby) {

    return {
        files: [

            { pattern: 'wwwroot/jspm_packages/system.js', instrument: false },
            { pattern: 'wwwroot/jspm_packages/system-polyfills.js', instrument: false },
            { pattern: 'wwwroot/config.js', instrument: false },
            // source files (`load: false` as the files will be loaded by system.js loader)
            { pattern: 'wwwroot/source/**/*.ts', load: false }

        ],

        tests: [
            { pattern: 'wwwroot/tests/unit/**/*.spec.ts', load: false }
        ],

        compilers: {


            'wwwroot/tests/unit/**/*.spec.ts': wallaby.compilers.typeScript({
                "module": 4,
                "emitDecoratorMetadata": true,
                "experimentalDecorators": true,
                "noImplicitAny": false
                // TypeScript compiler specific options
                // See interface CompilerOptions in
                // https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts
            })
        },

        middleware: (app, express) => {
            app.use('/jspm_packages', express.static(require('path').join(__dirname, 'jspm_packages')));
        },

        bootstrap: function (wallaby) {
            wallaby.delayStart();

            var promises = [];
            for (var i = 0, len = wallaby.tests.length; i < len; i++) {
                promises.push(System['import'](wallaby.tests[i].replace(/\.js$/, '')));
            }

            Promise.all(promises).then(function () {
                wallaby.start();
            });
        },

        debug: true
    };
};

is giving

wallaby.js started
core v1.0.129
Tue, 13 Oct 2015 04:39:53 GMT wallaby:project File cache: C:\Users\jeremynoble\AppData\Local\Temp\.wallaby\projects\JSjEpIuVvmV0rEzsIrIJ41Cfc=\cache
Tue, 13 Oct 2015 04:39:53 GMT wallaby:project Config file change detected, invalidating local cache
Tue, 13 Oct 2015 04:39:53 GMT wallaby:workers Parallelism for initial run: 2, for regular run: 2
Tue, 13 Oct 2015 04:39:53 GMT wallaby:workers Starting run worker instance #0
Tue, 13 Oct 2015 04:39:53 GMT wallaby:workers Starting run worker instance #1
Tue, 13 Oct 2015 04:39:53 GMT wallaby:workers Web server is listening at 1901
Tue, 13 Oct 2015 04:39:53 GMT wallaby:project File cache requires some updates, waiting required files from IDE
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system.js changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system-polyfills.js changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/source/estimate/price-chart.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/source/app.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/source/main.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/source/welcome.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/tests/unit/test.spec.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/tests/unit/welcome.spec.ts changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/config.js changes are patches only: false
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/config.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/config.js is not instrumented by core
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project No preprocessors configured for wwwroot/config.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Writing to disk and caching processed file wwwroot/config.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/source/estimate/price-chart.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/tests/unit/test.spec.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/jspm_packages/system.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system.js is not instrumented by core
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project No preprocessors configured for wwwroot/jspm_packages/system.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Writing to disk and caching processed file wwwroot/jspm_packages/system.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/jspm_packages/system-polyfills.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system-polyfills.js is not instrumented by core
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project No preprocessors configured for wwwroot/jspm_packages/system-polyfills.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Writing to disk and caching processed file wwwroot/jspm_packages/system-polyfills.js
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/source/app.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/source/main.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/source/welcome.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Preparing to process wwwroot/tests/unit/welcome.spec.ts
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project Starting processor pool (if not yet started)
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/config.js changes saved, store ts: 635802495170000000, change ts: 1444711194186
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system.js changes saved, store ts: 635801172340000000, change ts: 1444711194039
Tue, 13 Oct 2015 04:39:54 GMT wallaby:project File wwwroot/jspm_packages/system-polyfills.js changes saved, store ts: 635801172340000000, change ts: 1444711194039
Tue, 13 Oct 2015 04:39:55 GMT wallaby:workers Started run worker instance (immediate) #0
Tue, 13 Oct 2015 04:39:55 GMT wallaby:workers Started run worker instance (immediate) #1
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/source/estimate/price-chart.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/estimate/price-chart.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/source/estimate/price-chart.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/estimate/price-chart.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/source/welcome.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/tests/unit/welcome.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/welcome.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/source/welcome.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/welcome.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/tests/unit/welcome.spec.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/tests/unit/welcome.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/tests/unit/welcome.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/source/main.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/estimate/price-chart.ts changes saved, store ts: 635801770030000000, change ts: 1444711194083
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/main.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/source/main.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/main.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/welcome.ts changes saved, store ts: 635802832430000000, change ts: 1444711194139
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/tests/unit/welcome.spec.ts changes saved, store ts: 635802515070000000, change ts: 1444711194169
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/main.ts changes saved, store ts: 635801430860000000, change ts: 1444711194119
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/tests/unit/test.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/tests/unit/test.spec.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/tests/unit/test.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/tests/unit/test.spec.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/tests/unit/test.spec.ts changes saved, store ts: 635801765560000000, change ts: 1444711194154
Tue, 13 Oct 2015 04:39:55 GMT wallaby:processor No compilers found for wwwroot/source/app.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/app.ts is not instrumented by core
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project No preprocessors configured for wwwroot/source/app.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/app.ts
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project File wwwroot/source/app.ts changes saved, store ts: 635801517590000000, change ts: 1444711194098
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Stopping process pool
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Running postprocessor
Tue, 13 Oct 2015 04:39:55 GMT wallaby:postprocessor New TypeScript language service is required
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/source/app.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/source/estimate/price-chart.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/source/main.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/source/welcome.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/tests/unit/test.spec.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Preparing to process wwwroot/tests/unit/welcome.spec.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/source/app.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/source/app.js, via process pool: false
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/source/estimate/price-chart.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/source/estimate/price-chart.js, via process pool: false
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/source/main.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/source/main.js, via process pool: false
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/source/welcome.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/source/welcome.js, via process pool: false
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/tests/unit/test.spec.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/tests/unit/test.spec.js, via process pool: false
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Processing compiled wwwroot/tests/unit/welcome.spec.js
Tue, 13 Oct 2015 04:39:55 GMT wallaby:project Instrumenting wwwroot/tests/unit/welcome.spec.js, via process pool: false
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/source/app.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/source/estimate/price-chart.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/source/main.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/source/welcome.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/tests/unit/test.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project No preprocessors configured for wwwroot/tests/unit/welcome.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/app.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/estimate/price-chart.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/main.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/source/welcome.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/tests/unit/test.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Writing to disk and caching processed file wwwroot/tests/unit/welcome.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Postprocessor execution finished
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Test run started; run priority: 3
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Running all tests
Tue, 13 Oct 2015 04:39:56 GMT wallaby:workers Starting test run, priority: 3
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Starting sandbox [worker #0, session #0qyjt]
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Preparing sandbox [worker #0, session #0qyjt]
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Total files to load in sandbox: 3
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Sandbox is generated [worker #0, session #0qyjt]: http://localhost:1901/wallaby_sandbox0.html
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Creating page for worker #0
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Phantom page created
Tue, 13 Oct 2015 04:39:56 GMT wallaby:phantomRunner Prepared sandbox [worker #0, session #0qyjt]
Tue, 13 Oct 2015 04:39:56 GMT wallaby:workers Running tests in sandbox [worker #0, session #0qyjt]
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve C:\Users\jeremynoble\.wallaby\core\tracer.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving C:\Users\jeremynoble\.wallaby\core\tracer.js from disk
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /[email protected]/framework.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /[email protected]/framework.js from disk
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /[email protected]/configurator.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /[email protected]/configurator.js from disk
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /[email protected]/reporter.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /[email protected]/reporter.js from disk
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/jspm_packages/system.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/jspm_packages/system.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/jspm_packages/system-polyfills.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/jspm_packages/system-polyfills.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/config.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/config.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /[email protected]/starter.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /[email protected]/starter.js from disk
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/jspm_packages/system-polyfills.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/jspm_packages/system-polyfills.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/tests/unit/test.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/tests/unit/test.spec.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Preparing to serve /wwwroot/tests/unit/welcome.spec.js
Tue, 13 Oct 2015 04:39:56 GMT wallaby:middleware Serving /wwwroot/tests/unit/welcome.spec.js from cache
Tue, 13 Oct 2015 04:39:56 GMT wallaby:workers Sandbox (active) [0qyjt] error: Error: Module http://localhost:1901/wwwroot\tests\unit\welcome.spec.js interpreted as global module format, but called System.register.
Runtime error: Error: Module http://localhost:1901/wwwroot\tests\unit\welcome.spec.js interpreted as global module format, but called System.register.
console.error: Potentially unhandled rejection [3] Error: Module http://localhost:1901/wwwroot\tests\unit\welcome.spec.js interpreted as global module format, but called System.register.
    Evaluating http://localhost:1901/wwwroot\tests\unit\welcome.spec.js
    Error loading http://localhost:1901/wwwroot\tests\unit\welcome.spec.js (WARNING: non-Error used)
Tue, 13 Oct 2015 04:39:56 GMT wallaby:workers Run 0 test(s), skipped 0 test(s)
Tue, 13 Oct 2015 04:39:56 GMT wallaby:workers Sandbox [0qyjt] is responsive, closing it
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Test run finished
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Processed console.log entries
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Processed loading sequences
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Processed executed tests
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Processed code coverage
Tue, 13 Oct 2015 04:39:56 GMT wallaby:project Test run result processed and sent to IDE

where welcome.spec.js looks like

    $_$wp(8);
$_$w(8, 0), System.register(['../../source/welcome'], function (exports_1) {...

Can you provide some guidance to getting this sample working. Happy to spread the word if I can get it to work...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.