Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Signup functionality #56

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e89b62c
test: added apiKey and AuthProvider test
Abiji-2020 Nov 28, 2024
e447a0d
test:added index and PDPCheck
Abiji-2020 Nov 28, 2024
6bd5e99
Merge pull request #2 from Abiji-2020/gitops-github-create-wizard
Abiji-2020 Nov 28, 2024
32fa15e
Merge branch 'permitio:main' into unit-test
Abiji-2020 Nov 29, 2024
34e4e7e
test:added unit test for pdpd command and api
Abiji-2020 Nov 29, 2024
f7560d6
test:added gitops/util and modified some existing tests
Abiji-2020 Nov 29, 2024
acc865b
test: improved the coverage of the githubComponent
Abiji-2020 Nov 29, 2024
0a02058
test:added tests for the cleanAuthToken, loadAuthToken, saveAuthToken…
Abiji-2020 Nov 29, 2024
c7f832e
test: added test for browser auth open
Abiji-2020 Nov 29, 2024
a806c2c
docs: added details about the test
Abiji-2020 Nov 29, 2024
779f2d8
Merge branch 'permitio:main' into unit-test
Abiji-2020 Dec 1, 2024
c9141b8
Merge branch 'permitio:main' into unit-test
Abiji-2020 Dec 13, 2024
659672a
test:removed the tests that are redundant for pdp check
Abiji-2020 Dec 13, 2024
286f3fd
formatted the code
Abiji-2020 Dec 13, 2024
264412f
test: added test for hooks
Abiji-2020 Dec 16, 2024
1519e3c
tests: added hooks and formatted them
Abiji-2020 Dec 16, 2024
b49de9b
test: added environmentselection test
Abiji-2020 Dec 17, 2024
a6b3f9b
feat: Signup
35C4n0r Dec 29, 2024
3422f0f
feat: globals
35C4n0r Dec 29, 2024
5edd1f8
Extend delay for API Key command
gemanor Dec 30, 2024
6b206db
test: mocked clipboardy functions
Abiji-2020 Dec 30, 2024
76c7db4
ci: added libsecrete in ci
Abiji-2020 Dec 30, 2024
5e994f8
Update node.js.yml
gemanor Dec 30, 2024
e0b528f
Merge branch 'permitio:main' into unit-test
Abiji-2020 Dec 30, 2024
b3cfe20
ci: removed duplicate download
Abiji-2020 Dec 30, 2024
4b13060
Update node.js.yml
gemanor Dec 30, 2024
95a21fa
test: fixed the keytar depdency
Abiji-2020 Dec 30, 2024
7daf0b9
test: fixed additional keytar depdency
Abiji-2020 Dec 30, 2024
954a69e
Merge pull request #43 from Abiji-2020/unit-test
gemanor Dec 30, 2024
229b051
feat: Signup
35C4n0r Dec 29, 2024
db2c4df
feat: globals
35C4n0r Dec 29, 2024
dd7612d
Merge remote-tracking branch 'origin/feat-signup' into feat-signup
35C4n0r Dec 30, 2024
f315fe5
feat:test
35C4n0r Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ Based on [Pastel](https://github.com/vadimdemedes/create-pastel-app)
- run `npm install`
- run `npx tsx ./source/cli.tsx`

### Writing Tests

Permit CLI uses [`vitest`](https://vitest.dev/) as a tool for writing tests. It also uses [`ink-testing-library`](https://github.com/vadimdemedes/ink-testing-library) to render the `Ink` components.

- run `npx vitest` for testing
- run `npx vitest --coverage` for code coverage.

## CLI

```
Expand Down
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks';
import prettierPlugin from 'eslint-plugin-prettier';
import js from '@eslint/js';
import prettierConfig from 'eslint-config-prettier';
import globals from "globals";

const compat = new FlatCompat({
baseDirectory: import.meta.url,
Expand All @@ -16,6 +17,7 @@ const eslintConfig = [
js.configs.recommended,
...compat.extends('plugin:react/recommended'),
prettierConfig,

];

export default [
Expand All @@ -31,6 +33,7 @@ export default [
},
},
globals: {
...globals.browser,
Headers: 'readonly',
RequestInit: 'readonly',
fetch: 'readonly',
Expand Down Expand Up @@ -63,4 +66,5 @@ export default [
react: { version: 'detect' },
},
},

];
Loading
Loading