Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ilja
pleroma-fe
Commits
20b26754
Commit
20b26754
authored
8 years ago
by
lain
Browse files
Options
Downloads
Patches
Plain Diff
Remove coverage from tests for now.
Breaks the specs.
parent
5badc930
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unit/karma.conf.js
+18
-18
18 additions, 18 deletions
test/unit/karma.conf.js
with
18 additions
and
18 deletions
test/unit/karma.conf.js
+
18
−
18
View file @
20b26754
...
...
@@ -16,11 +16,11 @@ var webpackConfig = merge(baseConfig, {
loaders
:
utils
.
styleLoaders
()
},
devtool
:
'
#inline-source-map
'
,
vue
:
{
loaders
:
{
js
:
'
isparta
'
}
},
//
vue: {
//
loaders: {
//
js: 'isparta'
//
}
//
},
plugins
:
[
new
webpack
.
DefinePlugin
({
'
process.env
'
:
require
(
'
../../config/test.env
'
)
...
...
@@ -32,20 +32,20 @@ var webpackConfig = merge(baseConfig, {
delete
webpackConfig
.
entry
// make sure isparta loader is applied before eslint
webpackConfig
.
module
.
preLoaders
=
webpackConfig
.
module
.
preLoaders
||
[]
webpackConfig
.
module
.
preLoaders
.
unshift
({
test
:
/
\.
js$/
,
loader
:
'
isparta
'
,
include
:
path
.
resolve
(
projectRoot
,
'
src
'
)
})
//
webpackConfig.module.preLoaders = webpackConfig.module.preLoaders || []
//
webpackConfig.module.preLoaders.unshift({
//
test: /\.js$/,
//
loader: 'isparta',
//
include: path.resolve(projectRoot, 'src')
//
})
// only apply babel for test files when using isparta
webpackConfig
.
module
.
loaders
.
some
(
function
(
loader
,
i
)
{
if
(
loader
.
loader
===
'
babel
'
)
{
loader
.
include
=
path
.
resolve
(
projectRoot
,
'
test/unit
'
)
return
true
}
})
//
// only apply babel for test files when using isparta
//
webpackConfig.module.loaders.some(function (loader, i) {
//
if (loader.loader === 'babel') {
//
loader.include = path.resolve(projectRoot, 'test/unit')
//
return true
//
}
//
})
module
.
exports
=
function
(
config
)
{
config
.
set
({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment