Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
ParaEncode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ParaEncode
Commits
a6c2d297
Commit
a6c2d297
authored
Apr 29, 2022
by
NzSN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update karma config
parent
09fbfdc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
karma.conf.js
karma.conf.js
+17
-15
No files found.
karma.conf.js
View file @
a6c2d297
...
@@ -17,40 +17,42 @@ module.exports = function(config) {
...
@@ -17,40 +17,42 @@ module.exports = function(config) {
config
.
set
({
config
.
set
({
// base path that will be used to resolve all patterns (eg. files, exclude)
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath
:
''
,
basePath
:
''
,
// frameworks to use
// frameworks to use
// available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter
// available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter
frameworks
:
[
'jasmine'
,
'
webpack
'
],
frameworks
:
[
'jasmine'
,
'
browserify
'
],
// list of files / patterns to load in the browser
// list of files / patterns to load in the browser
files
:
[
files
:
[
"./specs.js"
,
{
pattern
:
'src/res.js'
,
included
:
true
},
{
pattern
:
"src/mp4encoder.wasm"
,
included
:
false
,
served
:
true
},
{
pattern
:
'tmp/**/*.js'
,
included
:
false
,
served
:
true
},
{
pattern
:
'tmp/**/*.wasm'
,
included
:
false
,
served
:
true
},
{
pattern
:
'src/**/*.js'
,
included
:
false
,
served
:
true
},
],
],
// list of files / patterns to exclude
// list of files / patterns to exclude
exclude
:
[
exclude
:
[
],
],
proxies
:
{
proxies
:
{},
'/tmp/mp4encoder.wasm'
:
'/base/src/mp4encoder.wasm'
,
'/tmp'
:
'/base/tmp/'
,
'/src'
:
'/base/src/'
,
},
// preprocess matching files before serving them to the browser
// preprocess matching files before serving them to the browser
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
preprocessors
:
{
preprocessors
:
{
'
./specs.js'
:
[
'webpack
'
],
'
src/res.js'
:
[
'browserify
'
],
},
},
webpack
:
webpackConfig
,
browserify
:
{
debug
:
true
,
transform
:
[
[
'babelify'
,
{
"presets"
:
[
"@babel/preset-env"
],
"plugins"
:
[
"@babel/transform-runtime"
]
}
]
]
},
// test results reporter to use
// test results reporter to use
// possible values: 'dots', 'progress'
// possible values: 'dots', 'progress'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment