加载过程中的错误:未捕获的TypeError:无法读取http:// localhost:9876 / _karma_webpack_ / main.js行3024中的null属性'config'

时间:2019-05-17 16:23:39

标签: jasmine karma-runner karma-webpack

我正在尝试运行单元测试。由于_karma_webpack _

出现问题,部分测试正在运行,而其他部分则不在
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <sys/wait.h>

int main(int argc, char *argv[]) {
  printf("%s \n", argv[1]);
  printf("%s \n", argv[2]);

  int pipefd[2], status, done = 0;
  int cpid;
  pipe(pipefd);

  cpid = fork();

  if (cpid == 0) {
    // Child 1 - Process 1
    close(pipefd[0]);
    dup2(pipefd[1], STDOUT_FILENO);
    execlp(argv[1], argv[1], (char *)NULL);
  }

  cpid = fork();

  if (cpid == 0) {
    // Child 2 - Process 2
    close(pipefd[1]);
    dup2(pipefd[0], STDIN_FILENO);
    execlp(argv[2], argv[2], (char *)NULL);
  }

  close(pipefd[0]);
  close(pipefd[1]);

  waitpid(-1, &status, 0);
  waitpid(-1, &status, 0);

  return (0);
}

karma.conf

"@angular/core": "^7.2.12"
"webpack": "4.29.0"

请,我希望在没有此错误的情况下运行茉莉花测试

0 个答案:

没有答案