Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Jan 10, 2025
1 parent bdebda0 commit 84aedc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
fail-fast: false
matrix:
node-version:
- 18
- 20
# - 18
# - 20
- 22
os:
- macos-latest
- ubuntu-latest
# - macos-latest
# - ubuntu-latest
- windows-latest
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export async function resolveConfig(cwd: string): Promise<Config> {
if (path) {
let config;

console.log(path);

try {
config = (await import(pathToFileURL(path).toString())).default;
} catch (cause) {
Expand Down
4 changes: 3 additions & 1 deletion test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { resolveConfig } from "../src/config.js";
import { generateComponent } from "../src/generators.ts";
import { gember, Package } from "./helpers.js";

it("supports a `gember.config.js` file", async (ctx) => {
it.only("supports a `gember.config.js` file", async (ctx) => {
const project = new Project({
files: {
"gember.config.js": "export default () => ({ hooks: {} });",
Expand All @@ -14,6 +14,8 @@ it("supports a `gember.config.js` file", async (ctx) => {

await project.write();

console.log(project.baseDir);

const config = await resolveConfig(project.baseDir);

ctx.expect(config).to.deep.equal({ hooks: {} });
Expand Down

0 comments on commit 84aedc7

Please sign in to comment.