jasmine


Webpack has been initialised using a configuration object that does not match the API schema


enter code herenpm test;
var webpackConfig = require('./webpack.test');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
{pattern: './karma-shim.js', watched: false}
],
exclude: [
],
preprocessors: {
'./karma-shim.js': ['webpack']
},
webpack: webpackConfig,
plugins:[
'karma-jasmine',
'karma-chrome-launcher',
require("karma-webpack")
],
proxies:{
"/app/": "http://localhost:3000/src/app"
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity
})
}
module.exports = {
devtool: 'cheap-module-eval-source-map',
resolve: {
extensions: ['','.ts','.js']
},
module: {
loaders: [
//以.ts结尾的文件使用 TypeScript loader
{test: /.ts$/,loader: 'awesome-typescript-loader'},
{
test:/\.html$/,
loader: 'html'
},
{
test:/\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
loader: 'null'
},
{
test:/\.css$/,
loader: 'null'
}
]
}
}
then throws a BUG.
karma start karma.conf.js
keywords if/then/else require v5 option
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be one of these:
object { : string | [string] } | string | [string]
The entry point(s) of the compilation.
- configuration.resolve.extensions[0] should not be empty.
Can not load "webpack"!
First i don't see any entey point mentioned in config file which is required in order to webpack understand where to start from.
Second your resolve option in config file hase mentioned three types to resolve and first one is empty string which webpack don't like so by removing that empty string it should fix that problem
Hope this help you to fix the issue.

Related Links

how to get total specs count and pass and fail specs count in jasmine 2 and protractor
Jasmine test for javascript
Webpack has been initialised using a configuration object that does not match the API schema
How to see unused data in jasmine tests
Test cases getting failed for nested function
How to log the name of the each it-test in Protractor
How to change jasmine version for circle ci
Error when running tests in VueJS: Unknown custom element: <router-link>
filter object and return count in jasmine
nodejs and jasmine.getFixtures is not a function
How do i include jasmine-jquery and jquery plugins so that i can use it in my specs?
How can we use savePath variable in Jasmine2HtmlReporter in node mailer attachments path
pooling a set of userIDs using beforeEach and afterEach
How do I check for a console log in Karma/Jasmine?
What's an efficient way to testing date functions using Jasmine?
RadioNodeList.value is returning undefined

Categories

HOME
jsf
cntk
ssas-2012
antivirus
computer-vision
tomcat7
codeeffects
wampserver
apple-numbers
schemacrawler
nodemailer
pygame
proguard
slim-3
aruco
google-plus
oclint
onsen-ui2
maxima
typeahead
scala-native
cross-platform
opera-mini
alfresco-share
embedly
url.action
fop
iup
source-maps
azure-servicebus-queues
delete-file
activepython
fetch-api
winscp
google-api-dotnet-client
multichoiceitems
twitter-bootstrap-2
helix-3d-toolkit
pdflatex
hotmail
polymorphism
mapguide
threshold
von-neumann
hashcat
shibboleth
oscommerce
text-files
nlb
deepstream.io
intellilock
floating-accuracy
distributed-transactions
prototypejs
webdatagrid
udev
maintenance
android-bitmap
launch
communication-protocol
adler32
packagemaker
software-product-lines
gherkin
dbscan
multilingual-app-toolkit
gemini
distribute
cctray
web-component-tester
hg-git
multipleselection
chaining
funq
getimagedata
phpdocx
zipalign
reserved-words
bounds
operations
cdata
sslexception
ienumerator
cgimageref
shortcuts
dynamics-ax-2009
jquery-selectbox
nvelocity
msn
code-design
hardware-infrastructure

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App