Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Bumped deps and fixed tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
atti187 committed Apr 2, 2020
1 parent e788718 commit 1b4131d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install --no-optional
- run: npm ci
- run: npm run build --if-present
- run: npm test
env:
Expand Down
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
],
plugins: [
'@babel/plugin-proposal-function-bind',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-catch-binding'
],
Expand Down
25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"license": "MIT",
"main": "./build",
"engines": {
"node": ">= 4.8.5"
"node": ">=10.0.0"
},
"scripts": {
"build": "NODE_ENV=production run-s clean compile",
"build": "run-s clean compile",
"clean": "rimraf ./build",
"compile": "babel src/ -d build/ --config-file ./babel.config.js",
"test": "run-s test:*",
Expand All @@ -19,7 +19,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/atti187/wdio-chromedriver-service.git"
"url": "git://github.com/atti187/wdio-chromedriver-service.git"
},
"keywords": [
"webdriverio",
Expand All @@ -35,35 +35,28 @@
"chromedriver": "*",
"@wdio/cli": "^6.0.0"
},
"dependencies": {
"fs-extra": "^0.30.0"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.1.2",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-optional-catch-binding": "^7.2.0",
"@babel/plugin-syntax-export-default-from": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-jest": "^25.2.4",
"babel-plugin-source-map-support": "^2.0.1",
"chromedriver": "^2.45.0",
"eslint": "^6.6.0",
"eslint-config-standard": "^5.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-standard": "^1.3.2",
"jest": "^23.6.0",
"mocha": "^2.5.3",
"fs-extra": "^9.0.0",
"jest": "^25.2.4",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"wdio-mocha-framework": "^0.2.12"
"rimraf": "^3.0.2"
},
"contributors": [
"Mattias Ekstrand <mattias.ekstrand@gmail.com>",
Expand Down
36 changes: 18 additions & 18 deletions tests/utils/getFilePath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,143 +12,143 @@ describe('getFilePath', () => {

test('should handle dir "./"', () => {
const dir = './'
const expectedPath = path.join(basePath, defaultFilename)
const expectedPath = path.resolve(path.join(basePath, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "/', () => {
const dir = '/'
const expectedPath = path.join(dir, defaultFilename)
const expectedPath = path.resolve(path.join(dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "./log"', () => {
const dir = './log'
const expectedPath = path.join(basePath, dir, defaultFilename)
const expectedPath = path.resolve(path.join(basePath, dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "/log', () => {
const dir = '/log'
const expectedPath = path.join(dir, defaultFilename)
const expectedPath = path.resolve(path.join(dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "./log/"', () => {
const dir = './log/'
const expectedPath = path.join(basePath, dir, defaultFilename)
const expectedPath = path.resolve(path.join(basePath, dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "/log/', () => {
const dir = '/log/'
const expectedPath = path.join(dir, defaultFilename)
const expectedPath = path.resolve(path.join(dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "./log/selenium"', () => {
const dir = './log/selenium'
const expectedPath = path.join(basePath, dir, defaultFilename)
const expectedPath = path.resolve(path.join(basePath, dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "log"', () => {
const dir = 'log'
const expectedPath = path.join(basePath, dir, defaultFilename)
const expectedPath = path.resolve(path.join(basePath, dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle dir "/log/selenium', () => {
const dir = '/log/selenium'
const expectedPath = path.join(dir, defaultFilename)
const expectedPath = path.resolve(path.join(dir, defaultFilename))
const filePath = getFilePath(dir, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file ".log"', () => {
const file = '.log'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "./.log"', () => {
const file = './.log'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "./log/.log"', () => {
const file = './log/.log'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "./selenium-log.txt"', () => {
const file = './selenium-log.txt'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "selenium-log.txt"', () => {
const file = 'selenium-log.txt'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "/selenium-log.txt', () => {
const file = '/selenium-log.txt'
const expectedPath = file
const expectedPath = path.resolve(file)
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "./log/selenium-log.txt"', () => {
const file = './log/selenium-log.txt'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "log/selenium-log.txt"', () => {
const file = 'log/selenium-log.txt'
const expectedPath = path.join(basePath, file)
const expectedPath = path.resolve(path.join(basePath, file))
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
})

test('should handle file "/log/selenium-log.txt', () => {
const file = '/log/selenium-log.txt'
const expectedPath = file
const expectedPath = path.resolve(file)
const filePath = getFilePath(file, defaultFilename)

expect(filePath).toBe(expectedPath)
Expand Down

0 comments on commit 1b4131d

Please sign in to comment.