-
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.
fix(cli): fix executePath on windows
- Loading branch information
1 parent
e6147a0
commit 933d15e
Showing
6 changed files
with
122 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { test, expect } from 'bun:test'; | ||
import supertest from 'supertest'; | ||
// import supertest from 'supertest'; | ||
|
||
const url = process.env.AZURE_FUNCTIONS_URL; | ||
const apiKey = process.env.AZURE_FUNCTIONS_API_KEY; | ||
if (!url) throw new Error('AZURE_FUNCTIONS_URL not set'); | ||
if (!apiKey) throw new Error('AZURE_FUNCTIONS_API_KEY not set'); | ||
|
||
test('e2e', async () => { | ||
const response = await supertest(url).get(`/api/SimpleHttpTrigger?code=${apiKey}`); | ||
// const response = await supertest(url).get(`/api/SimpleHttpTrigger?code=${apiKey}`); | ||
const response = await fetch(new URL(`/api/SimpleHttpTrigger?code=${apiKey}`, url).toString(), { | ||
method: 'GET', | ||
}); | ||
expect(response.status).toBe(200); | ||
}); |
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,3 @@ | ||
console.log('the current platform is ', process.platform); | ||
console.log('the current architecture is ', process.arch); | ||
console.log('the current version is ', process.version); |
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