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

Commit

Permalink
chore: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Jun 15, 2017
1 parent c7d8b2e commit 345b9bd
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -4,8 +4,6 @@ coverage
dist
node_modules
npm-debug.log
package
package-lock.json
package.tar.gz
resources
todo.tasks
4 changes: 0 additions & 4 deletions .vscode/settings.json
Expand Up @@ -7,8 +7,6 @@
"**/dist/**": true,
"**/node_modules/**": true,
"**/npm-debug.log": true,
"**/package/**": true,
"**/package.tar.gz": true,
"**/resources/**": true
},
"search.exclude": {
Expand All @@ -23,8 +21,6 @@
"**/docs/api-reference/utils/**": true,
"**/node_modules/**": true,
"**/npm-debug.log": true,
"**/package/**": true,
"**/package.tar.gz": true,
"**/resources/**": true
},
"prettier.bracketSpacing": false,
Expand Down
20 changes: 16 additions & 4 deletions docs/api-reference/test.md
Expand Up @@ -5,11 +5,13 @@
```ts
type SeleniumTest = (t: SeleniumTestContext, config: SeleniumConfig) => Promise<void>;

function test(name: string, implementation: SeleniumTest): void;
const test: {
(name: string, implementation: SeleniumTest): void;

test.only(name: string, implementation: SeleniumTest): void;
test.skip(name: string, implementation: SeleniumTest): void;
test.todo(name: string): void;
only(name: string, implementation: SeleniumTest): void;
skip(name: string, implementation: SeleniumTest): void;
todo(name: string): void;
};
```

## Example usage
Expand All @@ -20,4 +22,14 @@ import {test} from 'cybernaut';
test('Example: test()', async t => {
// Write the implementation of your test here.
});

test.only('Example: test.only()', async t => {
// Write the implementation of your test here.
});

test.skip('Example: test.skip()', async t => {
// Write the implementation of your test here.
});

test.todo('Example: test.todo()');
```
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -52,6 +52,11 @@
".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js"
}
},
"files": [
"config-schema.json",
"dist",
"types"
],
"scripts": {
"cz": "git-cz",
"format": "./scripts/npm/format.sh",
Expand Down
13 changes: 5 additions & 8 deletions scripts/npm/push.sh
Expand Up @@ -38,18 +38,15 @@ then
exit 1
fi

git push --follow-tags origin master
echo '# Pushing to GitHub #####################################################'

rm -rf package && mkdir -p package
git push --follow-tags origin master

cp -f config-schema.json package/config-schema.json
cp -rf dist package/dist
cp -f package.json package/package.json
cp -rf types package/types
echo '# Publishing to npm #####################################################'

rm -f package.tar.gz && tar czf package.tar.gz package
npm publish

npm publish package.tar.gz
echo '# Pushing to DockerHub ##################################################'

docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

Expand Down

0 comments on commit 345b9bd

Please sign in to comment.