Skip to content

devyn_quiz_1 #98

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions lesson_02/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

309 changes: 110 additions & 199 deletions lesson_02/quiz/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lesson_02/quiz/src/lesson2.test.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't have any changes to this file.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { flush, proxy } from "@alfonso-presa/soft-assert";
import { beforeEach, describe, expect, it } from "@jest/globals";
import {
AnswerChoice,
QuizConfig,
QuizQuestion,
AnswerChoice,
} from "codedifferently-instructional";
import { Lesson2 } from "./lesson2.js";
import { beforeEach, describe, it, expect } from "@jest/globals";
import { proxy, flush } from "@alfonso-presa/soft-assert";
import { fileURLToPath } from "url";
import path from "path";
import { fileURLToPath } from "url";
import { Lesson2 } from "./lesson2.js";

const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename); // get the name of the directory
Expand Down Expand Up @@ -69,4 +69,4 @@ describe("Lesson2Test", () => {

flush();
});
});
});
2 changes: 1 addition & 1 deletion lesson_02/quiz/src/lesson2.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't provide any answers

Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ export class Lesson2 {

if (!process.env.JEST_WORKER_ID) {
new Lesson2().run();
}
}
8 changes: 8 additions & 0 deletions lesson_02/quiz_java/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
1 change: 1 addition & 0 deletions lesson_02/quiz_java/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
3 changes: 3 additions & 0 deletions lesson_02/quiz_java/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions lesson_02/quiz_java/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
15 changes: 15 additions & 0 deletions lesson_02/quiz_java/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @ts-check

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
eslintConfigPrettier,
{
ignores: ["build"],
},
);
11 changes: 11 additions & 0 deletions lesson_02/quiz_java/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: "node",
transform: {
"^.+.tsx?$": ["ts-jest", { useESM: true }],
},
moduleNameMapper: {
"^(\\.\\.?\\/.+)\\.js$": "$1",
},
extensionsToTreatAsEsm: [".ts"],
};
Loading
Loading