This file contains hidden or 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
| const fs = require('fs'); | |
| const path = require('path'); | |
| const verdaccio = require('verdaccio').default; | |
| const YAML = require('js-yaml'); | |
| const getConfig = () => { | |
| return YAML.safeLoad(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); | |
| } | |
| const cache = path.join(__dirname, 'cache'); |
This file contains hidden or 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
| storage: ./storage | |
| plugins: ./plugins | |
| web: | |
| title: Verdaccio | |
| auth: | |
| htpasswd: | |
| file: ./htpasswd | |
| uplinks: | |
| npmjs: | |
| url: https://registry.npmjs.org/ |
This file contains hidden or 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
| 'use strict'; | |
| // The purpose of this example is to show | |
| // how you can block the event loop with JavaScript. | |
| // There is 3 routes | |
| // / respond with Hello, World text | |
| // /block uses JavaScript while for 5 seconds | |
| // /non-block uses setTimeout for 5 seconds | |
| // Do the following |
This file contains hidden or 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
| $> npm install wd | |
| // execute the test | |
| $> node wd.foo.test.js |
This file contains hidden or 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
| $> chromedriver --url-base=wd/hub --verbose | |
| Starting ChromeDriver (v2.9.248315) on port 9515 |
This file contains hidden or 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
| $> adb start-server | |
| $> adb devices | |
| List of devices attached | |
| 12n45n54b device |
This file contains hidden or 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
| $ git clone https://github.com/juanpicado/javascript-unit-testing-samples | |
| $ npm install |
This file contains hidden or 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
| var wd = require('wd'); | |
| require('colors'); | |
| var chai = require("chai"); | |
| var chaiAsPromised = require("chai-as-promised"); | |
| chai.use(chaiAsPromised); | |
| chai.should(); | |
| var browser = wd.remote('localhost', 9515); | |
| browser.init({ | |
| browserName: "chrome", | |
| chromeOptions: { |
This file contains hidden or 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
| module.exports = function(config) { | |
| config.set({ | |
| basePath: './', | |
| autoWatch: true, | |
| frameworks: ['mocha'], | |
| files: [ | |
| '../src/js/*.js', | |
| './test/*.js' | |
| ], | |
| browsers: ['PhantomJS', 'Chrome', 'Firefox'], |
This file contains hidden or 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
| WAR File | |
| /atlassian-jira-5.0-rc3-source/jira-project/jira-distribution/jira-webapp-dist/target/jira-webapp-dist-5.0-rc3.war |
NewerOlder