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

yarn test failure #186

Open
jecampagne opened this issue Nov 29, 2020 · 0 comments
Open

yarn test failure #186

jecampagne opened this issue Nov 29, 2020 · 0 comments

Comments

@jecampagne
Copy link

Hello,
I'm running yarn test on Mac Catalina

FAIL src/math/operations/tests/prismOps.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/index.ts:3:1)
  at Object.<anonymous> (src/math/operations/prismOps.ts:3:1)
  at Object.<anonymous> (src/math/operations/__tests__/prismOps.test.ts:1:1)

FAIL src/data/specs/tests/getSymmetry.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/specs/getConwaySymbol.ts:2:1)
  at Object.<anonymous> (src/data/specs/PolyhedronSpecs.ts:10:1)
  at Object.<anonymous> (src/data/specs/Classical.ts:3:1)
  at Object.<anonymous> (src/data/specs/getSpecs.ts:1:1)
  at Object.<anonymous> (src/data/specs/__tests__/getSymmetry.test.ts:1:1)

PASS src/data/tests/symmetry.test.ts
FAIL src/math/operations/tests/chainedOperations.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/index.ts:3:1)
  at Object.<anonymous> (src/math/operations/__tests__/chainedOperations.test.ts:1:1)

FAIL src/math/operations/tests/resizeOps.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/specs/getConwaySymbol.ts:2:1)
  at Object.<anonymous> (src/data/specs/PolyhedronSpecs.ts:10:1)
  at Object.<anonymous> (src/data/specs/Classical.ts:3:1)
  at Object.<anonymous> (src/math/operations/resizeOps.ts:4:1)
  at Object.<anonymous> (src/math/operations/__tests__/resizeOps.test.ts:1:1)

FAIL src/components/ViewerPage/tests/operations.test.tsx
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/index.ts:3:1)
  at Object.<anonymous> (src/components/ViewerPage/__tests__/operations.test.tsx:10:1)

FAIL src/math/operations/cutPasteOps/tests/augment.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/specs/getConwaySymbol.ts:2:1)
  at Object.<anonymous> (src/data/specs/PolyhedronSpecs.ts:10:1)
  at Object.<anonymous> (src/data/specs/Capstone.ts:3:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/augment.ts:4:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/__tests__/augment.test.ts:1:1)

FAIL src/math/operations/tests/truncateOps.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/index.ts:3:1)
  at Object.<anonymous> (src/math/operations/truncateOps.ts:2:1)
  at Object.<anonymous> (src/math/operations/__tests__/truncateOps.test.ts:1:1)

FAIL src/math/operations/cutPasteOps/tests/diminish.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/specs/getConwaySymbol.ts:2:1)
  at Object.<anonymous> (src/data/specs/PolyhedronSpecs.ts:10:1)
  at Object.<anonymous> (src/data/specs/Prismatic.ts:1:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/diminish.ts:3:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/__tests__/diminish.test.ts:1:1)

FAIL src/math/polyhedra/tests/Polyhedron.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/__tests__/Polyhedron.test.ts:1:1)

PASS src/components/ViewerPage/common/SolidScene/tests/X3dPolyhedron.test.tsx
FAIL src/math/operations/cutPasteOps/tests/gyrate.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/polyhedra/Polyhedron.ts:12:1)
  at Object.<anonymous> (src/math/polyhedra/index.ts:3:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/gyrate.ts:2:1)
  at Object.<anonymous> (src/math/operations/cutPasteOps/__tests__/gyrate.test.ts:1:1)

FAIL src/math/operations/tests/applyOperation.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/math/operations/__tests__/applyOperation.test.ts:2:1)

FAIL src/data/tests/alternates.test.ts
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/__tests__/alternates.test.ts:1:1)

FAIL src/components/HomePage/tests/HomePage.test.tsx
● Test suite failed to run

TypeError: groups.flatMap is not a function

  4 | 
  5 | const groups = ["platonic", "archimedean", "prisms", "antiprisms", "johnson"]
> 6 | export const allSolidNames = groups.flatMap(getPolyhedraNames)
    |                                     ^
  7 | 
  8 | export function isValidSolid(solidName: string) {
  9 |   return allSolidNames.includes(solidName)

  at Object.<anonymous> (src/data/common.ts:6:37)
  at Object.<anonymous> (src/data/conway.ts:2:1)
  at Object.<anonymous> (src/components/HomePage/PolyhedronTable.tsx:3:1)
  at Object.<anonymous> (src/components/HomePage/TableSection.tsx:8:1)
  at Object.<anonymous> (src/components/HomePage/HomePage.tsx:9:1)
  at Object.<anonymous> (src/components/HomePage/__tests__/HomePage.test.tsx:3:1)

Test Suites: 13 failed, 2 passed, 15 total
Tests: 25 passed, 25 total
Snapshots: 0 total
Time: 68.411s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant