How to add amd module(requirejs) as grunt-template-jasmine-requirejs helpers

107 Views Asked by At

I want to add a javascript file(which is a requirejs amd module) in "helpers" in grunt-template-jasmine-requirejs configuration. Im getting Uncaught Error: mismatch: Mismatched anonymous define() module. How to solve this problem. Thanks in advance.

jasmine:  {
            test: {
                src: ['app/scripts/**/*.js' ],
                options: {
                    specs: 'spec/*.js',
                    helpers: ['xyz.js', 'util.js'],

                    template: require('grunt-template-jasmine-requirejs'),
                    templateOptions: {
                        requireConfig: {
                            baseUrl: "app/scripts/",
                            requireConfigFile: 'require-config.js'                            
                        }
                    }
                }
            }

        }
0

There are 0 best solutions below