Skip to content

Strange Path Generation #60

@ChetHarrison

Description

@ChetHarrison

cloudchen, thanks for the template. I am looking forward to working with it!

I have installed the requested grunt-contrib-jasmine@~0.5.3 as instructed. When I look at the generated _SpecRunner.html the paths are as follows...

<script src=".grunt/grunt-contrib-jasmine/jasmine.js"></script>
<script src=".grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
<script>
require.config({
  "baseUrl": ".grunt/grunt-contrib-jasmine/src/main/js/"
});
</script>
<script>
function launchTest() {
    require([ ],
    function(){
      require([
'tests/js/specs/app-spec.js',
'/Applications/MAMP/htdocs/WebSites/node_modules/grunt-template-jasmine-istanbul/src/main/js/reporter.js',
'.grunt/grunt-contrib-jasmine/reporter.js'], function(){
        require(['.grunt/grunt-contrib-jasmine/jasmine-helper.js'], function(){
          // good to go! Our tests should already be running.
        })
      })
    }
    )
  }
  </script>

the base url of the require config does not match anything in my dir. The app-spec is a proper relative path to _SpecRunner.html file in the root of my project. The istanbul reporter is a valid fully qualified path to a location out side my project (not sure how it's figuring that out), and the jasmine-helper.js is a valid path relative to the _SpecRunner.html. Before I dive into your code. I was wondering if you could explain

1 how is the require config base url generated and where should it be pointing.
2 why are some paths relative and others not.

Thanks in advance.
Chet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions