-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial unit tests for front-end framework (#4576)
Credit to @bennothommo
- Loading branch information
1 parent
815ec1a
commit 5f15ed5
Showing
10 changed files
with
808 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [ | ||
[ | ||
"module-resolver", { | ||
"root": ["."], | ||
"alias": { | ||
"helpers": "./tests/js/helpers" | ||
} | ||
} | ||
] | ||
] | ||
} |
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,24 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
frontendTests: | ||
runs-on: ubuntu-latest | ||
name: JavaScript | ||
steps: | ||
- name: Checkout changes | ||
uses: actions/checkout@v1 | ||
- name: Install Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 8 | ||
- name: Install Node dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test |
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,5 @@ | ||
{ | ||
"esversion": 6, | ||
"curly": true, | ||
"asi": true | ||
} |
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
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,48 @@ | ||
{ | ||
"name": "octobercms", | ||
"description": "Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.", | ||
"directories": { | ||
"test": "tests/js/cases", | ||
"helpers": "tests/js/helpers" | ||
}, | ||
"scripts": { | ||
"test": "mocha --require @babel/register tests/js/cases/**/*.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/octobercms/october.git" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Alexey Bobkov", | ||
"email": "aleksey.bobkov@gmail.com" | ||
}, | ||
{ | ||
"name": "Samuel Georges", | ||
"email": "daftspunky@gmail.com" | ||
}, | ||
{ | ||
"name": "Luke Towers", | ||
"email": "octobercms@luketowers.ca", | ||
"url": "https://luketowers.ca" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/octobercms/october/issues" | ||
}, | ||
"homepage": "https://octobercms.com/", | ||
"devDependencies": { | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/node": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/register": "^7.5.5", | ||
"babel-plugin-module-resolver": "^3.2.0", | ||
"chai": "^4.2.0", | ||
"jquery": "^3.4.1", | ||
"jsdom": "^15.1.1", | ||
"mocha": "^6.2.0", | ||
"sinon": "^7.4.1" | ||
} | ||
} |
Oops, something went wrong.