forked from jjangga0214/haetae
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9140b1b
commit c38d239
Showing
11 changed files
with
113 additions
and
17 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
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
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# my-calculator-test | ||
|
||
This is an example project guided by the official *Getting Started* docs. | ||
|
||
To execute, build the package [`heatae`](../../packages/haetae) first. | ||
|
||
```bash | ||
pnpm --filter "haetae" build | ||
``` | ||
|
||
Then check if it works. | ||
|
||
```bash | ||
pnpm haetae tests | ||
``` |
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,53 @@ | ||
import { $ as $$ } from 'execa' | ||
import { dirname } from 'dirname-filename-esm' | ||
import upath from 'upath' | ||
|
||
const $ = $$({ | ||
stdio: 'pipe', | ||
}) | ||
|
||
const examples = upath.resolve(dirname(import.meta), '../../../examples') | ||
|
||
describe('test', () => { | ||
// eslint-disable-next-line jest/no-hooks | ||
beforeAll(async () => { | ||
await $`pnpm --filter "haetae" build` | ||
}) | ||
|
||
test('cjs-js', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/cjs-js`, | ||
})`pnpm haetae helloworld` | ||
expect(stdout).toContain('Command helloworld is successfully executed.') | ||
}) | ||
test('cjs-ts-1', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/cjs-ts-1`, | ||
})`pnpm haetae helloworld` | ||
expect(stdout).toContain('Command helloworld is successfully executed.') | ||
}) | ||
test('cjs-ts-2', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/cjs-ts-2`, | ||
})`pnpm haetae helloworld` | ||
expect(stdout).toContain('Command helloworld is successfully executed.') | ||
}) | ||
test('esm-js', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/esm-js`, | ||
})`pnpm haetae helloworld` | ||
expect(stdout).toContain('Command helloworld is successfully executed.') | ||
}) | ||
test('esm-ts', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/esm-ts`, | ||
})`pnpm haetae helloworld` | ||
expect(stdout).toContain('Command helloworld is successfully executed.') | ||
}) | ||
test('my-calculator', async () => { | ||
const { stdout } = await $({ | ||
cwd: `${examples}/my-calculator`, | ||
})`pnpm haetae test` | ||
expect(stdout).toContain('Command test is successfully executed.') | ||
}) | ||
}) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# `haetae` | ||
|
||
The main user-friendly package recommended to most of users of Haetae. | ||
The main recommended user-friendly package for most of the users of Haetae. | ||
|
||
Refer to the official documentation website. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.