-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [#56779] Allow empty lines https://community.openproject.org/work_packages/56779 * remove console.log * workaround for missing multiple blank lines support in markdown * remove regex workaround; add necessary node replacements * remove console.log * add ckeditor test environment for jest * disable out-of-scope encoding tests * add specs for blank lines in markdown * fix empty markdown creating a break * support empty lines in lists * only run tests for supported LTS version * avoid "growing" code block; avoid removal of empty code blocks * cleanup
- Loading branch information
Showing
29 changed files
with
4,450 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
node: "current", | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: ["@babel/plugin-transform-modules-commonjs"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* For a detailed explanation regarding each configuration property, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
|
||
module.exports = { | ||
// Automatically clear mock calls, instances, contexts and results before every test | ||
clearMocks: true, | ||
// Indicates whether the coverage information should be collected while executing the test | ||
collectCoverage: true, | ||
// The directory where Jest should output its coverage files | ||
coverageDirectory: "coverage", | ||
// A list of paths to directories that Jest should use to search for files in | ||
roots: [ | ||
"tests", | ||
"src" | ||
], | ||
// A map from regular expressions to paths to transformers | ||
transform: { | ||
'^.+\\.js$': 'babel-jest', | ||
}, | ||
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module | ||
moduleNameMapper: { | ||
"\\.(css|less|scss|sass)$": "identity-obj-proxy" | ||
}, | ||
// The test environment that will be used for testing | ||
testEnvironment: "jsdom", | ||
// The paths to modules that run some code to configure or set up the testing environment before each test | ||
setupFiles: ['<rootDir>/jest.setup.js'], | ||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation | ||
transformIgnorePatterns: [] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { escape } from 'underscore' | ||
|
||
global._ = { | ||
escape: escape | ||
} |
Oops, something went wrong.